number = int(input("Enter a number: ")) for number in range(1,number + 1) : print(number) for x in range(number - 1) : number = number - 1 print(number)