number = int(input("Enter a number: ")) count = 0 while count < number : count = count + 1 print(count) if count == number : count = count - 1 print(count) while count != 1 : count = count - 1 print(count)