




"""simple docstring"""






from hashlib import mda, shaaaa

__A         =				(shaaaa, mda)


class 					UpperCAmelCase		:



    """simple docstring"""

    def __init__(     self					,    _UpperCAmelCase = 8							):
       lowercase__:     Union[str, Any]      =   0B0
       lowercase__:     Optional[Any]      =   size






    def _snake_case    (     self					,    _UpperCAmelCase							):
       lowercase__:     List[str]      =   self.hash_(_UpperCAmelCase							)
       self.bitarray |= h






    def _snake_case    (     self					,    _UpperCAmelCase							):
       lowercase__:     int      =   self.hash_(_UpperCAmelCase							)
       return (h & self.bitarray) == h






    def __contains__(     self					,    _UpperCAmelCase							):
       return self.exists(_UpperCAmelCase							)






    def _snake_case    (     self					,    _UpperCAmelCase							):
       lowercase__:     Any      =   bin(_UpperCAmelCase							)[2:]
       return res.zfill(self.size							)






    @property
    def _snake_case    (     self							):
       return self.format_bin(self.bitarray							)






    def _snake_case    (     self					,    _UpperCAmelCase							):
       lowercase__:     Dict      =   0B0
       for func in HASH_FUNCTIONS:
          lowercase__:     Tuple      =   (
              int.from_bytes(func(value.encode()							).digest()					,    '''little'''							) % self.size
          )
          res |= 2**position
       return res






    def _snake_case    (     self					,    _UpperCAmelCase							):
       return self.format_bin(self.hash_(_UpperCAmelCase							)							)






    @property
    def _snake_case    (     self							):
       lowercase__:     int      =   bin(self.bitarray							).count('''1'''							)
       return (n_ones / self.size) ** len(_UpperCAmelCase							)

"""simple docstring"""






def SCREAMING_SNAKE_CASE__    (     __UpperCAmelCase = 1_0_0_0				)						->						int:
   lowercase__:     Union[str, Any]      =   0
   lowercase__:     Any      =   0
   while 1:
      num += 3
      if num >= n:
         break
      total += num
      num += 2
      if num >= n:
         break
      total += num
      num += 1
      if num >= n:
         break
      total += num
      num += 3
      if num >= n:
         break
      total += num
      num += 1
      if num >= n:
         break
      total += num
      num += 2
      if num >= n:
         break
      total += num
      num += 3
      if num >= n:
         break
      total += num
   return total


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