output_description: Print a_i and a_j that you selected, with a space in between.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      n
      a_1 a_2 ... a_n
attempt: def Fc(n, r):
      t = 1
      for i in range(int(n - r)):
          t = t * (n - i)
      return t
  
  
  def Comb(n, r):
      return int(Fc(n, r) / Fc(r, 0))
  
  
  N = int(input())
  a = list(map(int, input().strip().split(" ")))
  asort = sorted(a)
  
  maxn = [0, -1, -1]  # 現在の最大値,n,r
  for i in range(N - 1):
      n = asort[N - i - 1]
      if n % 2 == 0:
          medn = n / 2
      else:
          medn = (n + 1) / 2
      if maxn[0] > Comb(n, medn):  # どうやっても越えられないならブレイク
          break
      flg = True
      r_ = medn  # rの候補
      rp = medn + 1
      rm = medn - 1
      while flg:
          if r_ in a:
              r = r_
              flg = False
          elif rp in a:
              r = rp
              flg = False
          elif rm in a:
              r = rm
              flg = False
          rp += 1
          rm -= 1
      if Comb(n, r) > maxn[0]:
          maxn[0] = Comb(n, r)
          maxn[1] = n
          maxn[2] = r
  n = maxn[1]
  r = int(maxn[2])
  print(str(n) + " " + str(r))
  
problem_description: Statement
  
  Let {\rm comb}(n,r) be the number of ways to choose r objects from among n
  objects, disregarding order. From n non-negative integers a_1, a_2, ..., a_n,
  select two numbers a_i > a_j so that {\rm comb}(a_i,a_j) is maximized. If
  there are multiple pairs that maximize the value, any of them is accepted.
samples: [{"input": "5\n    6 9 4 2 11", "output": "11 6\n    \n\n\\rm{comb}(a_i,a_j) for each possible selection is as follows:\n\n  * \\rm{comb}(4,2)=6\n  * \\rm{comb}(6,2)=15\n  * \\rm{comb}(6,4)=15\n  * \\rm{comb}(9,2)=36\n  * \\rm{comb}(9,4)=126\n  * \\rm{comb}(9,6)=84\n  * \\rm{comb}(11,2)=55\n  * \\rm{comb}(11,4)=330\n  * \\rm{comb}(11,6)=462\n  * \\rm{comb}(11,9)=55\n\nThus, we should print 11 and 6.\n\n* * *"}, {"input": "2\n    100 0", "output": "100 0"}]