for count in range (1, 1001):
    print count
x = 5
while (x <= 1000000):
    print x
    x += 5
#second attempt below
'''
for i in range (1, 1001):
  if i % 2 != 0:
    print i
for i in range (5, 1000001):
  if i % 5 == 0:
    print i
'''
