def o(n): if n == 1: print(1) else: print(n) o(n-1) o(int(input()))
def o(n): if n<1: return print(n) o(n-1) o(int(input()))
def o(n): print(n) if n != 1: o(n-1) o(int(input()))