





"""simple docstring"""




def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    list					) ->int:






	'''simple docstring'''






	if not grid or not grid[0]:
		raise TypeError("The grid does not contain the appropriate information"					)

	for cell_n in range(1    ,       len(grid[0]					)					):
		grid[0][cell_n] += grid[0][cell_n - 1]
	a      :		Union[str, Any]	=				grid[0]

	for row_n in range(1    ,       len(_lowercase					)					):
		a      :		Optional[Any]	=				grid[row_n]
		a      :		Tuple	=				fill_row(_lowercase    ,       _lowercase					)
		a      :		List[Any]	=				grid[row_n]

	return grid[-1][-1]






def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    list    ,       _lowercase						:    list					) ->list:






	'''simple docstring'''






	current_row[0] += row_above[0]
	for cell_n in range(1    ,       len(_lowercase					)					):
		current_row[cell_n] += min(current_row[cell_n - 1]    ,       row_above[cell_n]					)

	return current_row


if __name__ == "__main__":
		import doctest

		doctest.testmod()








"""simple docstring"""


from math import factorial

A_						=				{str(d): factorial(d) for d in range(10)}


def 					UpperCAmelCase__       (snake_case__							:					int    ):
  """simple docstring"""

  return sum(DIGIT_FACTORIAL[d] for d in str(snake_case__    )    )


def 					UpperCAmelCase__       ():
  """simple docstring"""

  _snake_case							:		List[str]								=  7 * factorial(9    ) + 1
  return sum(i for i in range(3		,   snake_case__    ) if sum_of_digit_factorial(snake_case__    ) == i    )


if __name__ == "__main__":
     print(F'''{solution() = }''')


