


"""simple docstring"""



import itertools
def     UpperCAmelCase    (					_lowercase   :      Any  )	->   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     UpperCAmelCase    (					)	->   Dict:


	"""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"""



import doctest

import projectq
from projectq.ops import H, Measure
def     UpperCAmelCase    (					_lowercase   :      projectq.cengines._main.MainEngine  )	->   int:


	"""simple docstring"""




	lowerCAmelCase_			       = quantum_engine.allocate_qubit()
	H | qubit
	Measure | qubit
	return int(_lowercase  )


if __name__ == "__main__":
		doctest.testmod()

		# initialises a new quantum backend
		lowercase_							 =       projectq.MainEngine()

		# Generate a list of 10 random numbers
		lowercase_							 =       [get_random_number(quantum_engine) for _ in range(10)]

		# Flushes the quantum engine from memory
		quantum_engine.flush()

		print('Random numbers', random_numbers_list)