
"""simple docstring"""





from .hash_table import HashTable


class A_			(lowercase__   ):




  '''simple docstring'''







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

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







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

     """simple docstring"""
     UpperCAmelCase_      :      Tuple      =					1
     UpperCAmelCase_      :      List[str]      =					self.hash_function(key + i * i						)

     while self.values[new_key] is not None and self.values[new_key] != key:
        i += 1
        UpperCAmelCase_      :      List[Any]      =					(
            self.hash_function(key + i * i						)
            if not self.balanced_factor() >= self.lim_charge
            else None
        )

        if new_key is None:
           break

     return new_key




"""simple docstring"""





def 			__a  (	__lowerCamelCase = 1000						):
   UpperCAmelCase_      :      List[Any]      =					0
   UpperCAmelCase_      :      List[str]      =					(n - 1) // 3
   total += ((terms) * (6 + (terms - 1) * 3)) // 2  # total of an A.P.
   UpperCAmelCase_      :      Any      =					(n - 1) // 5
   total += ((terms) * (10 + (terms - 1) * 5)) // 2
   UpperCAmelCase_      :      Optional[int]      =					(n - 1) // 15
   total -= ((terms) * (30 + (terms - 1) * 15)) // 2
   return total


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


