'''simple docstring'''




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


snake_case  =			{'''configuration_umt5''': ['''UMT5Config''', '''UMT5OnnxConfig''']}


try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 snake_case  =			[
     '''UMT5EncoderModel''',
     '''UMT5ForConditionalGeneration''',
     '''UMT5ForQuestionAnswering''',
     '''UMT5Model''',
     '''UMT5PreTrainedModel''',
 ]

if TYPE_CHECKING:
 from .configuration_umta import UMTaConfig, UMTaOnnxConfig

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_umta import (
      UMTaEncoderModel,
      UMTaForConditionalGeneration,
      UMTaForQuestionAnswering,
      UMTaModel,
      UMTaPreTrainedModel,
  )
else:
 import sys

 snake_case  =			_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)






'''simple docstring'''




import itertools







def 			A_   ( _lowerCamelCase			:							Tuple    ):
      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 			A_   ( ):
      return sum(
          {
              int(''.join(pandigital[5:9]    )    )
              for pandigital in itertools.permutations('123456789'    )
              if is_combination_valid(_lowerCamelCase    )
          }    )


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





