num = int(input("Enter a number: ")) count = 0 while count != num: print (count) count+=1 while count != 0: print (count) count-=1