


"""simple docstring"""






import logging
import os
from logging import (
    CRITICAL,  # NOQA
    DEBUG,  # NOQA
    ERROR,  # NOQA
    FATAL,  # NOQA
    INFO,  # NOQA
    NOTSET,  # NOQA
    WARN,  # NOQA
    WARNING,  # NOQA
)
from typing import Optional

from tqdm import auto as tqdm_lib


__snake_case		=       {
    '''debug''': logging.DEBUG,
    '''info''': logging.INFO,
    '''warning''': logging.WARNING,
    '''error''': logging.ERROR,
    '''critical''': logging.CRITICAL,
}

__snake_case		=       logging.WARNING
def       A_   (   ):






     """simple docstring"""

     _a    	=				os.getenv('''DATASETS_VERBOSITY''',     _lowerCAmelCase       )
     if env_level_str:
          if env_level_str in log_levels:
               return log_levels[env_level_str]
          else:
               logging.getLogger().warning(
                   f'Unknown option DATASETS_VERBOSITY={env_level_str}, '
                   f'has to be one of: { ", ".join(log_levels.keys()       ) }'       )
     return _default_log_level
def       A_   (   ):






     """simple docstring"""

     return __name__.split('''.'''       )[0]
def       A_   (   ):






     """simple docstring"""

     return logging.getLogger(_get_library_name()       )
def       A_   (   ):






     """simple docstring"""

     _a    	=				_get_library_root_logger()
     library_root_logger.setLevel(_get_default_logging_level()       )
def       A_   (   ):






     """simple docstring"""

     _a    	=				_get_library_root_logger()
     library_root_logger.setLevel(logging.NOTSET       )
def       A_   (   _lowerCAmelCase     :					Optional[str] = None       ):






     """simple docstring"""

     if name is None:
          _a    	=				_get_library_name()
     return logging.getLogger(_lowerCAmelCase       )
def       A_   (   ):






     """simple docstring"""

     return _get_library_root_logger().getEffectiveLevel()
def       A_   (   _lowerCAmelCase     :					int       ):






     """simple docstring"""

     _get_library_root_logger().setLevel(_lowerCAmelCase       )
def       A_   (   ):






     """simple docstring"""

     return set_verbosity(_lowerCAmelCase       )
def       A_   (   ):






     """simple docstring"""

     return set_verbosity(_lowerCAmelCase       )
def       A_   (   ):






     """simple docstring"""

     return set_verbosity(_lowerCAmelCase       )
def       A_   (   ):






     """simple docstring"""

     return set_verbosity(_lowerCAmelCase       )
def       A_   (   ):






     """simple docstring"""

     _a    	=				False
def       A_   (   ):






     """simple docstring"""

     _a    	=				True


# Configure the library root logger at the module level (singleton-like)
_configure_library_root_logger()


class     __lowerCamelCase  :

     '''simple docstring'''


     def __init__(      self    ,				*__UpperCAmelCase    ,				**__UpperCAmelCase							)       ->							Any:  # pylint: disable=unused-argument
          _a    	=				args[0] if args else None


     def __iter__(      self							)       ->							List[Any]:
          return iter(self._iterator							)


     def __getattr__(      self    ,				__UpperCAmelCase							)       ->							Tuple:

          def empty_fn(*__UpperCAmelCase    ,				**__UpperCAmelCase							):  # pylint: disable=unused-argument
               return

          return empty_fn


     def __enter__(      self							)       ->							List[Any]:
          return self





     def __exit__(      self    ,				__UpperCAmelCase    ,				__UpperCAmelCase    ,				__UpperCAmelCase							)       ->							Optional[int]:
          return







__snake_case		=       True


class     __lowerCamelCase  :

     '''simple docstring'''


     def __call__(      self    ,				*__UpperCAmelCase    ,				__UpperCAmelCase=False    ,				**__UpperCAmelCase							)       ->							Optional[Any]:
          if _tqdm_active and not disable:
               return tqdm_lib.tqdm(*__UpperCAmelCase    ,				**__UpperCAmelCase							)
          else:
               return EmptyTqdm(*__UpperCAmelCase    ,				**__UpperCAmelCase							)


     def 							_UpperCAmelCase      (      self    ,				*__UpperCAmelCase    ,				**__UpperCAmelCase							)       ->							str:
          _a    	=				None
          if _tqdm_active:
               return tqdm_lib.tqdm.set_lock(*__UpperCAmelCase    ,				**__UpperCAmelCase							)





     def 							_UpperCAmelCase      (      self							)       ->							Optional[int]:
          if _tqdm_active:
               return tqdm_lib.tqdm.get_lock()







__snake_case		=       _tqdm_cls()
def       A_   (   ):






     """simple docstring"""

     global _tqdm_active
     return bool(_tqdm_active       )
def       A_   (   ):






     """simple docstring"""

     global _tqdm_active
     _a    	=				True

def       A_   (   ):






     """simple docstring"""

     global _tqdm_active
     _a    	=				False



"""simple docstring"""






def       A_   (   _lowerCAmelCase     :					Dict=2_81_23       ):






     """simple docstring"""

     _a    	=				[1] * (limit + 1)

     for i in range(2,     int(limit**0.5       ) + 1       ):
          sum_divs[i * i] += i
          for k in range(i + 1,     limit // i + 1       ):
               sum_divs[k * i] += k + i

     _a    	=				set()
     _a    	=				0

     for n in range(1,     limit + 1       ):
          if sum_divs[n] > n:
               abundants.add(_lowerCAmelCase       )

          if not any((n - a in abundants) for a in abundants       ):
               res += n

     return res


if __name__ == "__main__":
   print(solution())