20222202 - 韩信点兵

n=int(input()) for i in range(1,n+1,1):

if i%3==2 and i%5==4 and i%7==6:
    print(i)