import sysfor s in sys.stdin: if s == "0": break print(" ".join(map(str, filter(lambda x: x%7!=0, range(0, int(s))))))
import sys
for s in sys.stdin:
if s == "0":
break
print(" ".join(map(str, filter(lambda x: x%7!=0, range(0, int(s))))))
繼續FP秒殺