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