output_description: Print the integers contained in the boxes A, B, and C, in this order, with
  space in between.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      X Y Z
attempt: n = int(input())
  D = []
  
  
  def FindOtvet(i, j, otv):
      if i == 0:
          return ""
      if j == 0:
          if (otv + D[i - 1][j]) < n:
              otv += D[i - 1][j]
              return str(j + 1) + FindOtvet(i - 1, j + 1, otv)
          else:
              return str(j) + FindOtvet(i - 1, j, otv)
      elif j == 9:
          if (otv + D[i - 1][j - 1]) < n:
              otv += D[i - 1][j - 1]
              return str(j) + FindOtvet(i - 1, j, otv)
          else:
              return str(j - 1) + FindOtvet(i - 1, j - 1, otv)
      else:
          if (otv + D[i - 1][j - 1]) < n:
              otv += D[i - 1][j - 1]
              if (otv + D[i - 1][j]) < n:
                  otv += D[i - 1][j]
                  return str(j + 1) + FindOtvet(i - 1, j + 1, otv)
              else:
                  return str(j) + FindOtvet(i - 1, j, otv)
          else:
              return str(j - 1) + FindOtvet(i - 1, j - 1, otv)
  
  
  arr = []
  for i in range(10):
      arr.append(1)
  D.append(arr)
  totalSum = 9
  i = 1
  respI = 0
  respJ = 0
  while respI == 0 and respJ == 0:
      arr = []
      for j in range(10):
          if j == 0:
              arr.append(D[i - 1][j] + D[i - 1][j + 1])
          elif j < 9:
              arr.append(D[i - 1][j - 1] + D[i - 1][j] + D[i - 1][j + 1])
          else:
              arr.append(D[i - 1][j - 1] + D[i - 1][j])
          if j > 0:
              if (totalSum + arr[j]) >= n:
                  respI = i
                  respJ = j
                  break
              totalSum += arr[j]
      D.append(arr)
      i += 1
  respStr = str(respJ)
  print(respStr + FindOtvet(respI, respJ, totalSum))
  
problem_description: Statement
  
  We have three boxes A, B, and C, each of which contains an integer.  
  Currently, the boxes A, B, and C contain the integers X, Y, and Z,
  respectively.  
  We will now do the operations below in order. Find the content of each box
  afterward.
  
    * Swap the contents of the boxes A and B
    * Swap the contents of the boxes A and C
samples: [{"input": "1 2 3", "output": "3 1 2\n    \n\nAfter the contents of the boxes A and B are swapped, A, B, and C contain 2, 1,\nand 3, respectively.  \nThen, after the contents of A and C are swapped, A, B, and C contain 3, 1, and\n2, respectively.\n\n* * *"}, {"input": "100 100 100", "output": "100 100 100\n    \n\n* * *"}, {"input": "41 59 31", "output": "31 41 59"}]