


'''simple docstring'''

import itertools



def 							SCREAMING_SNAKE_CASE__(		_UpperCamelCase   :					Union[str, Any] )		->       List[str]:





   '''simple docstring'''







   return (
       int("".join(combination[0:2] ) ) * int("".join(combination[2:5] ) )
       == int("".join(combination[5:9] ) )
   ) or (
       int("".join(combination[0] ) ) * int("".join(combination[1:5] ) )
       == int("".join(combination[5:9] ) )
   )



def 							SCREAMING_SNAKE_CASE__(		)		->       Optional[int]:





   '''simple docstring'''







   return sum(
       {
           int("".join(pandigital[5:9] ) )
           for pandigital in itertools.permutations("123456789" )
           if is_combination_valid(_UpperCamelCase )
       } )


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







def    a__    (	A       ):
   return " ".join([word[::-1] for word in input_str.split()]       )


if __name__ == "__main__":
 import doctest

 doctest.testmod()


