



"""simple docstring"""






import itertools






def 	snake_case__  (						__lowerCamelCase							:       Optional[int]      ):
			"""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 	snake_case__  (						):
			"""simple docstring"""
			return sum(
			    {
			        int(''''''.join(pandigital[5:9]      )      )
			        for pandigital in itertools.permutations('''123456789'''      )
			        if is_combination_valid(__lowerCamelCase      )
			    }      )


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











'''simple docstring'''

from __future__ import annotations




def  _a     (				lowerCAmelCase_						):





      """simple docstring"""



      _snake_case		:						List[str]         =  sorted(lowerCAmelCase_						)
      _snake_case		:						Any         =  len(lowerCAmelCase_						)
      _snake_case		:						List[str]         =  length >> 1
      return (
          (sorted_list[mid_index] + sorted_list[mid_index - 1]) / 2
          if length % 2 == 0
          else sorted_list[mid_index]
      )




def  _a     (				):





      """simple docstring"""



      import doctest

      doctest.testmod()


if __name__ == "__main__":
   main()


