
"""simple docstring"""



from math import factorial

a       :						Tuple       		=		{str(d): factorial(d) for d in range(1_0)}


def 			_UpperCamelCase						(    _A   )     ->	int:





    """simple docstring"""

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


def 			_UpperCamelCase						(    )     ->	int:





    """simple docstring"""

    _UpperCAmelCase        = 7 * factorial(9   ) + 1
    return sum(i for i in range(3       ,   _A   ) if sum_of_digit_factorial(_A   ) == i   )


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

"""simple docstring"""



import os
from math import logaa


def 			_UpperCamelCase						(    _A = "base_exp.txt"   )     ->	int:





    """simple docstring"""

    _UpperCAmelCase        = 0
    _UpperCAmelCase        = 0
    for i, line in enumerate(open(os.path.join(os.path.dirname(_A   )       ,   _A   )   )   ):
        _UpperCAmelCase     ,_UpperCAmelCase        = list(map(_A       ,   line.split(""","""   )   )   )
        if x * logaa(_A   ) > largest:
            _UpperCAmelCase        = x * logaa(_A   )
            _UpperCAmelCase        = i + 1
    return result


if __name__ == "__main__":
 print(solution())