
'''simple docstring'''






def 		A_							(						_lowerCAmelCase :     int				):



      """simple docstring"""




      _lowerCamelCase					: int		    = (1 + 24 * n) ** 0.5
      return ((1 + root) / 6) % 1 == 0







def 		A_							(						_lowerCAmelCase :     int = 5000				):



      """simple docstring"""




      _lowerCamelCase					: Dict		    = [(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					: List[Any]		    = pentagonal_nums[j]
                  _lowerCamelCase					: Any		    = pentagonal_i + pentagonal_j
                  _lowerCamelCase					: Union[str, Any]		    = pentagonal_j - pentagonal_i
                  if is_pentagonal(_lowerCAmelCase				) and is_pentagonal(_lowerCAmelCase				):
                        return b

      return -1


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



'''simple docstring'''






from ...utils import is_torch_available, is_transformers_available


if is_transformers_available() and is_torch_available():
  from .pipeline_vq_diffusion import LearnedClassifierFreeSamplingEmbeddings, VQDiffusionPipeline



