n,y=int(input()),2004 print(2000) while y<=n: if y%100!=0: print(y) y+=4