"""simple docstring"""






import os
from distutils.util import strtobool


def     UpperCAmelCase__ (       lowerCAmelCase__  :List[Any]      ,	lowerCAmelCase__  :Union[str, Any]	)				->					Dict:
      '''simple docstring'''


      for e in env_keys:
            lowercase														=			int(os.environ.get(lowerCAmelCase__      ,	-1	)	)
            if val >= 0:
                  return val
      return default


def     UpperCAmelCase__ (       lowerCAmelCase__  :List[str]      ,	lowerCAmelCase__  :str=False	)				->					List[Any]:
      '''simple docstring'''


      lowercase														=			os.environ.get(lowerCAmelCase__      ,	str(lowerCAmelCase__	)	)
      return strtobool(lowerCAmelCase__	) == 1  # As its name indicates `strtobool` actually returns an int...






def     UpperCAmelCase__ (       lowerCAmelCase__  :List[Any]      ,	lowerCAmelCase__  :str="no"	)				->					List[Any]:
      '''simple docstring'''


      lowercase														=			os.environ.get(lowerCAmelCase__      ,	str(lowerCAmelCase__	)	)
      return value




"""simple docstring"""






def     UpperCAmelCase__ (       lowerCAmelCase__  :int	)				->					bool:
      '''simple docstring'''


      lowercase														=			(1 + 2_4 * n) ** 0.5
      return ((1 + root) / 6) % 1 == 0


def     UpperCAmelCase__ (       lowerCAmelCase__  :int = 5_0_0_0	)				->					int:
      '''simple docstring'''


      lowercase														=			[(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__	)	):
                  lowercase														=			pentagonal_nums[j]
                  lowercase														=			pentagonal_i + pentagonal_j
                  lowercase														=			pentagonal_j - pentagonal_i
                  if is_pentagonal(lowerCAmelCase__	) and is_pentagonal(lowerCAmelCase__	):
                        return b

      return -1


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



