


'''simple docstring'''






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

import huggingface_hub.utils as hf_hub_utils
from tqdm import auto as tqdm_lib


a_					:    Tuple          =    threading.Lock()
a_					:    Optional[logging.Handler]          =    None

a_					:    str          =    {
    "debug": logging.DEBUG,
    "info": logging.INFO,
    "warning": logging.WARNING,
    "error": logging.ERROR,
    "critical": logging.CRITICAL,
}

a_					:    int          =    logging.WARNING

a_					:    List[str]          =    True






def 	_A				()   ->  Dict:




     '''simple docstring'''



     _a			      =							os.getenv('TRANSFORMERS_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 TRANSFORMERS_VERBOSITY={env_level_str}, '
                   f'has to be one of: { ", ".join(log_levels.keys()		) }'		)
     return _default_log_level






def 	_A				()   ->  str:




     '''simple docstring'''



     return __name__.split('.'		)[0]






def 	_A				()   ->  logging.Logger:




     '''simple docstring'''



     return logging.getLogger(_get_library_name()		)






def 	_A				()   ->  None:




     '''simple docstring'''



     global _default_handler

     with _lock:
          if _default_handler:
               # This library has already configured the library root logger.
               return
          _a			      =							logging.StreamHandler()  # Set sys.stderr as stream.
          _a			      =							sys.stderr.flush

          # Apply our default configuration to the library root logger.
          _a			      =							_get_library_root_logger()
          library_root_logger.addHandler(_default_handler		)
          library_root_logger.setLevel(_get_default_logging_level()		)
          _a			      =							False






def 	_A				()   ->  None:




     '''simple docstring'''



     global _default_handler

     with _lock:
          if not _default_handler:
               return

          _a			      =							_get_library_root_logger()
          library_root_logger.removeHandler(_default_handler		)
          library_root_logger.setLevel(logging.NOTSET		)
          _a			      =							None






def 	_A				()   ->  Tuple:




     '''simple docstring'''



     return log_levels






def 	_A				(lowerCAmelCase__  :Optional[str] = None		)   ->  logging.Logger:




     '''simple docstring'''



     if name is None:
          _a			      =							_get_library_name()

     _configure_library_root_logger()
     return logging.getLogger(lowerCAmelCase__		)






def 	_A				()   ->  int:




     '''simple docstring'''



     _configure_library_root_logger()
     return _get_library_root_logger().getEffectiveLevel()






def 	_A				(lowerCAmelCase__  :int		)   ->  None:




     '''simple docstring'''



     _configure_library_root_logger()
     _get_library_root_logger().setLevel(lowerCAmelCase__		)






def 	_A				()   ->  int:




     '''simple docstring'''



     return set_verbosity(lowerCAmelCase__		)






def 	_A				()   ->  int:




     '''simple docstring'''



     return set_verbosity(lowerCAmelCase__		)






def 	_A				()   ->  Union[str, Any]:




     '''simple docstring'''



     return set_verbosity(lowerCAmelCase__		)






def 	_A				()   ->  int:




     '''simple docstring'''



     return set_verbosity(lowerCAmelCase__		)






def 	_A				()   ->  None:




     '''simple docstring'''



     _configure_library_root_logger()

     assert _default_handler is not None
     _get_library_root_logger().removeHandler(_default_handler		)






def 	_A				()   ->  None:




     '''simple docstring'''



     _configure_library_root_logger()

     assert _default_handler is not None
     _get_library_root_logger().addHandler(_default_handler		)






def 	_A				(lowerCAmelCase__  :logging.Handler		)   ->  None:




     '''simple docstring'''



     _configure_library_root_logger()

     assert handler is not None
     _get_library_root_logger().addHandler(lowerCAmelCase__		)






def 	_A				(lowerCAmelCase__  :logging.Handler		)   ->  None:




     '''simple docstring'''



     _configure_library_root_logger()

     assert handler is not None and handler not in _get_library_root_logger().handlers
     _get_library_root_logger().removeHandler(lowerCAmelCase__		)






def 	_A				()   ->  None:




     '''simple docstring'''



     _configure_library_root_logger()
     _a			      =							False






def 	_A				()   ->  None:




     '''simple docstring'''



     _configure_library_root_logger()
     _a			      =							True






def 	_A				()   ->  None:




     '''simple docstring'''



     _a			      =							_get_library_root_logger().handlers

     for handler in handlers:
          _a			      =							logging.Formatter('[%(levelname)s|%(filename)s:%(lineno)s] %(asctime)s >> %(message)s'		)
          handler.setFormatter(lowerCAmelCase__		)






def 	_A				()   ->  None:




     '''simple docstring'''



     _a			      =							_get_library_root_logger().handlers

     for handler in handlers:
          handler.setFormatter(lowerCAmelCase__		)






def 	_A				(self  :Dict				,						*lowerCAmelCase__  :Any				,						**lowerCAmelCase__  :Optional[int]		)   ->  List[str]:




     '''simple docstring'''



     _a			      =							os.getenv('TRANSFORMERS_NO_ADVISORY_WARNINGS'				,						lowerCAmelCase__		)
     if no_advisory_warnings:
          return
     self.warning(*lowerCAmelCase__				,						**lowerCAmelCase__		)


a_					:    Tuple          =    warning_advice






@functools.lru_cache(lowerCAmelCase__		)
def 	_A				(self  :List[Any]				,						*lowerCAmelCase__  :List[Any]				,						**lowerCAmelCase__  :int		)   ->  Optional[Any]:




     '''simple docstring'''



     self.warning(*lowerCAmelCase__				,						**lowerCAmelCase__		)


a_					:    str          =    warning_once




class  a     :
 def __init__( self      ,				*__magic_name__      ,				**__magic_name__						)					->							Optional[Any]:  # pylint: disable=unused-argument
      _a			      =							args[0] if args else None
 def __iter__( self						)					->							str:
      return iter(self._iterator						)
 def __getattr__( self      ,				__magic_name__						)					->							Tuple:

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

      return empty_fn
 def __enter__( self						)					->							int:
      return self




 def __exit__( self      ,				__magic_name__      ,				__magic_name__      ,				__magic_name__						)					->							str:
      return





class  a     :
 def __call__( self      ,				*__magic_name__      ,				**__magic_name__						)					->							str:
      if _tqdm_active:
           return tqdm_lib.tqdm(*__magic_name__      ,				**__magic_name__						)
      else:
           return EmptyTqdm(*__magic_name__      ,				**__magic_name__						)
 def 							__UpperCAmelCase		( self      ,				*__magic_name__      ,				**__magic_name__						)					->							Tuple:
      _a			      =							None
      if _tqdm_active:
           return tqdm_lib.tqdm.set_lock(*__magic_name__      ,				**__magic_name__						)




 def 							__UpperCAmelCase		( self						)					->							List[str]:
      if _tqdm_active:
           return tqdm_lib.tqdm.get_lock()





a_					:    Optional[int]          =    _tqdm_cls()






def 	_A				()   ->  bool:




     '''simple docstring'''



     global _tqdm_active
     return bool(_tqdm_active		)






def 	_A				()   ->  List[Any]:




     '''simple docstring'''



     global _tqdm_active
     _a			      =							True
     hf_hub_utils.enable_progress_bars()






def 	_A				()   ->  Tuple:




     '''simple docstring'''



     global _tqdm_active
     _a			      =							False
     hf_hub_utils.disable_progress_bars()





'''simple docstring'''






from functools import reduce

a_					:    Any          =    (
    "73167176531330624919225119674426574742355349194934"
    "96983520312774506326239578318016984801869478851843"
    "85861560789112949495459501737958331952853208805511"
    "12540698747158523863050715693290963295227443043557"
    "66896648950445244523161731856403098711121722383113"
    "62229893423380308135336276614282806444486645238749"
    "30358907296290491560440772390713810515859307960866"
    "70172427121883998797908792274921901699720888093776"
    "65727333001053367881220235421809751254540594752243"
    "52584907711670556013604839586446706324415722155397"
    "53697817977846174064955149290862569321978468622482"
    "83972241375657056057490261407972968652414535100474"
    "82166370484403199890008895243450658541227588666881"
    "16427171479924442928230863465674813919123162824586"
    "17866458359124566529476545682848912883142607690042"
    "24219022671055626321111109370544217506941658960408"
    "07198403850962455444362981230987879927244284909188"
    "84580156166097919133875499200524063689912560717606"
    "05886116467109405077541002256983155200055935729725"
    "71636269561882670428252483600823257530420752963450"
)






def 	_A				(lowerCAmelCase__  :str = N		)   ->  int:




     '''simple docstring'''



     return max(
         # mypy cannot properly interpret reduce
         int(reduce(lambda lowerCAmelCase__				,						lowerCAmelCase__		: str(int(lowerCAmelCase__		) * int(lowerCAmelCase__		)		)				,						n[i : i + 13]		)		)
         for i in range(len(lowerCAmelCase__		) - 12		)		)


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

