





def  __magic_name__  (				lowercase = 600851475143				)				-> int:

							"""simple docstring"""



							try:
														lowercase_	:   Tuple  				=     int(lowercase				)
							except (TypeError, ValueError):
														raise TypeError("""Parameter n must be int or castable to int."""				)
							if n <= 0:
														raise ValueError("""Parameter n must be greater than or equal to one."""				)
							lowercase_	:   List[Any]  				=     2
							lowercase_	:   Optional[Any]  				=     0
							if n == 2:
														return 2
							while n > 2:
														while n % i != 0:
																					i += 1
														lowercase_	:   List[str]  				=     i
														while n % i == 0:
																					lowercase_	:   Tuple  				=     n // i
														i += 1
							return int(lowercase				)


if __name__ == "__main__":
							print(F'''{solution() = }''')



'''simple docstring'''

from math import sqrt

def _SCREAMING_SNAKE_CASE (A = 1_000_000			)			->			int:






       """simple docstring"""







       lowercase__      =					0
       lowercase__      =					0
       lowercase__      =					42

       while num_cuboids <= limit:
              max_cuboid_size += 1
              for sum_shortest_sides in range(2    ,					2 * max_cuboid_size + 1			):
                     if sqrt(sum_shortest_sides**2 + max_cuboid_size**2			).is_integer():
                            num_cuboids += (
                                min(A    ,					sum_shortest_sides // 2			)
                                - max(1    ,					sum_shortest_sides - max_cuboid_size			)
                                + 1
                            )

       return max_cuboid_size


if __name__ == "__main__":
 print(f"""{solution() = }""")




