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