


'''simple docstring'''







import decimal







def _UpperCamelCase	(					)							->		int:


      '''simple docstring'''



      UpperCamelCase__  =    0
      UpperCamelCase__  =    decimal.Context(prec=105   )
      for i in range(2				,      100   ):
            UpperCamelCase__  =    decimal.Decimal(__A   )
            UpperCamelCase__  =    number.sqrt(__A   )
            if len(str(__A   )   ) > 1:
                  answer += int(str(__A   )[0]   )
                  UpperCamelCase__  =    str(__A   )[2:101]
                  answer += sum(int(__A   ) for x in sqrt_number_str   )
      return answer


if __name__ == "__main__":
  import doctest

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









'''simple docstring'''







def _UpperCamelCase	(					__A   )							->		int:


      '''simple docstring'''



      if number != int(__A   ):
            raise ValueError("factorial() only accepts integral values"   )
      if number < 0:
            raise ValueError("factorial() not defined for negative values"   )
      UpperCamelCase__  =    1
      for i in range(1				,      number + 1   ):
            value *= i
      return value







def _UpperCamelCase	(					__A   )							->		int:


      '''simple docstring'''



      if not isinstance(__A				,      __A   ):
            raise ValueError("factorial() only accepts integral values"   )
      if n < 0:
            raise ValueError("factorial() not defined for negative values"   )
      return 1 if n == 0 or n == 1 else n * factorial(n - 1   )


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  a__  : str				=	int(input('Enter a positive integer: ').strip() or 0)
  print(F"""factorial{n} is {factorial(n)}""")





