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: from sys import stdin
  import operator as op
  import numpy
  import math
  
  
  def combination_table(N):
      C = []
      for i in range(N + 1):
          C.append([0] * (N + 1))
      for i in range(N + 1):
          for j in range(i + 1):
              if j == 0 or j == i:
                  C[i][j] = 1
              else:
                  C[i][j] = C[i - 1][j - 1] + C[i - 1][j]
      return C
  
  
  if __name__ == "__main__":
      N, A, B = stdin.readline().split(" ")
      N = int(N)
      A = int(A)
      B = int(B)
      V = []
      line = stdin.readline().split(" ")
      unique_elements = dict()
      for e in line:
          V.append(int(e))
          if not int(e) in unique_elements:
              unique_elements[int(e)] = 1
          else:
              unique_elements[int(e)] += 1
      V.sort(reverse=True)
  
      C = combination_table(N)
  
      # find optimal selections between A and B
      optimal = [A]
      highest_avg = -1
      for i in range(A, B + 1):
          avg = float(sum(V[:i])) / float(i)
          if avg > highest_avg:
              highest_avg = avg
              optimal = [i]  # reset the list
          elif avg == highest_avg:
              if not i in optimal:
                  optimal.append(i)
  
      total = 1
      for e in optimal:
          # unique elements and count in for optimal value
          op_elemements = dict()
          for i in range(e):
              if V[i] in op_elemements:
                  op_elemements[V[i]] += 1
              else:
                  op_elemements[V[i]] = 1
  
          # find the sum
          for key, value in op_elemements.items():
              # print (unique_elements[key], value, C[unique_elements[key]][value])
              total = total * C[unique_elements[key]][value]
  
      print("{:6f}".format(highest_avg))
      print(int(total))
  
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."}]