


def  a   (lowerCAmelCase__ = 600_851_475_143   ):


   try:
      __a					=  int(lowerCAmelCase__   )
   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."""   )
   __a					=  1
   __a					=  2
   while i * i <= n:
      while n % i == 0:
         __a					=  i
         n //= i
      i += 1
   if n > 1:
      __a					=  n
   return int(lowerCAmelCase__   )


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




"""simple docstring"""






def      UpperCAmelCase__			(							lowerCAmelCase__	:int = 1_0**9						)					->       int:
      '''simple docstring'''


      lowercase								=      1
      lowercase								=      2

      lowercase								=      0
      lowercase								=      0
      lowercase								=      0
      while perimeter <= max_perimeter:
            perimeters_sum += perimeter

            prev_value += 2 * value
            value += prev_value

            lowercase								=      2 * value + 2 if i % 2 == 0 else 2 * value - 2
            i += 1

      return perimeters_sum


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



