output_description: Print the hour of the starting time of the contest in 24-hour time.
  
  * * *
input_description: The input is given from Standard Input in the following format:
  
      
      
      A B
attempt: import sys
  
  sys.setrecursionlimit(10000)
  
  
  def memoize(f):
      cache = {}
  
      def func(*args):
          if args not in cache:
              cache[args] = f(*args)
          return cache[args]
  
      return func
  
  
  @memoize
  def combi(n, r):
      if r == 0 or n == r:
          return 1
      return combi(n - 1, r - 1) + combi(n - 1, r)
  
  
  n, a, b = map(int, input().split())
  items = sorted(map(int, input().split()), reverse=True)
  max_ave_list = items[:a]
  print(sum(max_ave_list) / len(max_ave_list))
  
  m = max_ave_list.count(max_ave_list[-1])
  l = items.count(max_ave_list[-1])
  if l == m:
      print(1)
  elif max_ave_list[0] != max_ave_list[-1]:
      print(combi(l, m))
  else:
      print(sum(combi(l, k) for k in range(m, min(b, l) + 1)))
  
problem_description: Statement
  
  Dolphin loves programming contests. Today, he will take part in a contest in
  AtCoder.  
  In this country, 24-hour clock is used. For example, 9:00 p.m. is referred to
  as "21 o'clock".  
  The current time is A o'clock, and a contest will begin in exactly B hours.
  When will the contest begin? Answer in 24-hour time.
samples: [{"input": "9 12", "output": "21\n    \n\nIn this input, the current time is 9 o'clock, and 12 hours later it will be 21\no'clock in 24-hour time.\n\n* * *"}, {"input": "19 0", "output": "19\n    \n\nThe contest has just started.\n\n* * *"}, {"input": "23 2", "output": "1\n    \n\nThe contest will begin at 1 o'clock the next day."}]