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