def countDown(n):
  print(n, end = " ") # the part I know how to do
  if n > 0: # look for base case
    countDown(n - 1) # do this if not base case
# countDown ends here

# main program starts here
n = int(input("Enter n: "))
countDown(n)
print()