import math


def sum_of_factorials(numbers):
  """
  Sums the factorial of each digit in digits

  Ex: sum_of_factorials([2, 3, 4]) = 2! + 3! + 4! = 32
  """
  return sum(math.factorial(number) for number in numbers)