



'''simple docstring'''






import itertools




def        snake_case_   (	lowerCAmelCase_						)->						Dict:





       '''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_   (	)->						str:





       '''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())





_snake_case		  =   {
    "+": lambda x, y: x + y,
    "-": lambda x, y: x - y,
    "*": lambda x, y: x * y,
    "/": lambda x, y: x / y,
}
def lowerCamelCase_       (			A			:      List[Any]						):




      """simple docstring"""
      return c.isdigit()
def lowerCamelCase_       (			A			:      List[Any]						):




      """simple docstring"""
      lowerCAmelCase_						=      []

      # iterate over the string in reverse order
      for c in expression.split()[::-1]:
            # push operand to stack
            if is_operand(A						):
                  stack.append(int(A						)						)

            else:
                  # pop values from stack can calculate the result
                  # push the result onto the stack again
                  lowerCAmelCase_						=      stack.pop()
                  lowerCAmelCase_						=      stack.pop()
                  stack.append(calc[c](A		,					A						)						)

      return stack.pop()


# Driver code
if __name__ == "__main__":
 _snake_case		  =   "+ 9 * 2 6"
 print(evaluate(test_expression))

 _snake_case		  =   "/ * 10 2 + 4 1 "
 print(evaluate(test_expression))



