print(2000) for i in [x for x in range(2000,int(input())+1,4) if x%100]:print(i)