






"""simple docstring"""





import decimal



def      __lowercase       (     )       ->       int:
      __snake_case   :     Tuple	      =0
      __snake_case   :     Any	      =decimal.Context(prec=105			)
      for i in range(2							,		100			):
            __snake_case   :     Optional[Any]	      =decimal.Decimal(lowerCAmelCase_			)
            __snake_case   :     int	      =number.sqrt(lowerCAmelCase_			)
            if len(str(lowerCAmelCase_			)			) > 1:
                  answer += int(str(lowerCAmelCase_			)[0]			)
                  __snake_case   :     Any	      =str(lowerCAmelCase_			)[2:101]
                  answer += sum(int(lowerCAmelCase_			) for x in sqrt_number_str			)
      return answer


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    print(F'''{solution() = }''')







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



