#-*- coding:UTF-8 -*-
#count up
#分分钟飙满cpu
num_max = int(raw_input("INPUT a number:"))
i = 0
while i <= num_max:
print i
i += 1
#print "done"
#-*- coding:UTF-8 -*-
#count up
#分分钟飙满cpu
num_max = int(raw_input("INPUT a number:"))
i = 0
while i <= num_max:
print i
i += 1
#print "done"