






def 	lowerCamelCase__      (  lowercase = 600851475143					):

  """simple docstring"""






  try:
    SCREAMING_SNAKE_CASE							:   str						    =     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."					)
  SCREAMING_SNAKE_CASE							:   Any						    =     1
  SCREAMING_SNAKE_CASE							:   Union[str, Any]						    =     2
  while i * i <= n:
    while n % i == 0:
      SCREAMING_SNAKE_CASE							:   Optional[Any]						    =     i
      n //= i
    i += 1
  if n > 1:
    SCREAMING_SNAKE_CASE							:   Tuple						    =     n
  return int(lowerCamelCase__					)


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










def 	__lowerCamelCase						(							lowerCamelCase__		:						int      ):





			'''simple docstring'''




			lowerCamelCase    		=  (1 + 24 * n) ** 0.5
			return ((1 + root) / 6) % 1 == 0






def 	__lowerCamelCase						(							lowerCamelCase__		:						int = 5000      ):





			'''simple docstring'''




			lowerCamelCase    		=  [(i * (3 * i - 1)) // 2 for i in range(1  ,							lowerCamelCase__      )]
			for i, pentagonal_i in enumerate(lowerCamelCase__      ):
						for j in range(lowerCamelCase__  ,							len(lowerCamelCase__      )      ):
									lowerCamelCase    		=  pentagonal_nums[j]
									lowerCamelCase    		=  pentagonal_i + pentagonal_j
									lowerCamelCase    		=  pentagonal_j - pentagonal_i
									if is_pentagonal(lowerCamelCase__      ) and is_pentagonal(lowerCamelCase__      ):
												return b

			return -1


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

