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