number = int(input('Enter a number: ')) test = 1 while test <= number : print(test) test = test + 1 test = number - 1 while test > 0 : print(test) test = test - 1