number = int(input( "Please enter your number: ")) for i in range( 1, number + 1): print(i) for i in range(number - 1, 0, -1): print(i)