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