output_description: Print the maximum possible amount of the allowance.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C
attempt: def com(n, m):
      if n - m < m:
          m = n - m
      result = 1
      mylist = [i for i in range(1, m + 1)]
      j = 1
      for i in range(1, m + 1):
          result *= n + 1 - i
          if j < m:
              while result % mylist[j] == 0:
                  result //= mylist[j]
                  j += 1
                  if j >= m:
                      break
      return result
  
  
  def yakusuu(i, m):
      _i = i
      while i**2 <= m:
          if m % i == 0:
              return i
          else:
              i += 1
      for j in range(_i - 1, 0, -1):
          if m % j == 0:
              break
      return m // j
  
  
  N, M = map(int, input().split())
  soinsuubunkai = {}
  tmp = 2
  i = 2
  _M = M
  while tmp <= M:
      tmp = yakusuu(tmp, M)
  
      if tmp in soinsuubunkai:
          soinsuubunkai[tmp] += 1
      else:
          soinsuubunkai[tmp] = 1
      M //= tmp
      if M == 1:
          break
  
  
  tmp = 1
  for k in list(soinsuubunkai.values()):
      tmp *= com(k + N - 1, k)
      tmp %= 10**9 + 7
  print(tmp)
  
problem_description: Statement
  
  You have decided to give an allowance to your child depending on the outcome
  of the game that he will play now.
  
  The game is played as follows:
  
    * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it.
    * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.)
    * Then, the amount of the allowance will be equal to the resulting value of the formula.
  
  Given the values A, B and C printed on the integer panels used in the game,
  find the maximum possible amount of the allowance.
samples: [{"input": "1 5 2", "output": "53\n    \n\nThe amount of the allowance will be 53 when the panels are arranged as `52+1`,\nand this is the maximum possible amount.\n\n* * *"}, {"input": "9 9 9", "output": "108\n    \n\n* * *"}, {"input": "6 6 7", "output": "82"}]