





import itertools
def     lowercase__       (       __lowercase						:  str					)			->				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     lowercase__       (       )			->				Union[str, Any]:



       """simple docstring"""






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


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







'''simple docstring'''
def     lowercase__       (       __lowercase						:  list    ,  __lowercase						:  int    ,  __lowercase						:  int    ,  __lowercase						:  int					)			->				int:



       """simple docstring"""






       __UpperCamelCase	=  int((lower_bound + upper_bound) // 2					)
       if array[r] == value:
              return r
       if lower_bound >= upper_bound:
              return -1
       if array[r] < value:
              return binary_search(__lowercase    ,  r + 1    ,  __lowercase    ,  __lowercase					)
       else:
              return binary_search(__lowercase    ,  __lowercase    ,  r - 1    ,  __lowercase					)
def     lowercase__       (       __lowercase						:  int    ,  __lowercase						:  list					)			->				list:



       """simple docstring"""






       __UpperCamelCase	=  0
       if matrix[index][0] == value:
              return [index, 0]
       while index < len(__lowercase					) and matrix[index][0] < value:
              __UpperCamelCase	=  binary_search(matrix[index]    ,  0    ,  len(matrix[index]					) - 1    ,  __lowercase					)
              if r != -1:
                     return [index, r]
              index += 1
       return [-1, -1]


if __name__ == "__main__":
    import doctest

    doctest.testmod()
