






'''simple docstring'''



def    __UpperCAmelCase	(				SCREAMING_SNAKE_CASE__:	int    )  ->			bool:

   """simple docstring"""
   __a				     =    (1 + 24 * n) ** 0.5
   return ((1 + root) / 6) % 1 == 0



def    __UpperCAmelCase	(				SCREAMING_SNAKE_CASE__:	int = 5000    )  ->			int:

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

   return -1


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







'''simple docstring'''



def    __UpperCAmelCase	(				SCREAMING_SNAKE_CASE__:	int    )  ->			bool:

   """simple docstring"""
   return number & 1 == 0


if __name__ == "__main__":
 import doctest

 doctest.testmod()