






def 	_UpperCamelCase   (    UpperCamelCase_       :					int		)  ->   Union[str, Any]:

						"""simple docstring"""



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







def 	_UpperCamelCase   (    UpperCamelCase_       :					int = 5000		)  ->   Tuple:

						"""simple docstring"""



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

						return -1


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













from collections import deque

from .hash_table import HashTable


class     __SCREAMING_SNAKE_CASE					(   __lowercase):






						def __init__(	self     ,						*_UpperCamelCase     ,						**_UpperCamelCase   ):






												"""simple docstring"""
												super().__init__(*_UpperCamelCase     ,						**_UpperCamelCase   )






						def       UpperCamelCase__      (	self     ,						_UpperCamelCase     ,						_UpperCamelCase   ):






												"""simple docstring"""
												lowerCAmelCase__    						=						deque([]   ) if self.values[key] is None else self.values[key]
												self.values[key].appendleft(_UpperCamelCase   )
												lowerCAmelCase__    						=						self.values[key]






						def       UpperCamelCase__      (	self   ):






												"""simple docstring"""
												return (
												    sum(self.charge_factor - len(_UpperCamelCase   ) for slot in self.values   )
												    / self.size_table
												    * self.charge_factor
												)







						def       UpperCamelCase__      (	self     ,						_UpperCamelCase     ,						_UpperCamelCase=None   ):






												"""simple docstring"""
												if not (
												    len(self.values[key]   ) == self.charge_factor and self.values.count(_UpperCamelCase   ) == 0
												):
																		return key
												return super()._collision_resolution(_UpperCamelCase     ,						_UpperCamelCase   )





