number=int(input("Input a number.")) for number in range(1,number+1): print(number) number = number while number > 1: print(number-1) number = number-1