import warnings

from ...utils import logging
from .image_processing_poolformer import PoolFormerImageProcessor


UpperCamelCase__    							= logging.get_logger(__name__)





class 					A							(    UpperCAmelCase_					):


   def __init__(self					:						List[Any]	,  *__UpperCAmelCase					:						Any	,  **__UpperCAmelCase					:						Optional[Any]		)						->    None:
         """simple docstring"""



         warnings.warn(
             "The class PoolFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
             " Please use PoolFormerImageProcessor instead."	,  __UpperCAmelCase	,  )
         super().__init__(*__UpperCAmelCase	,  **__UpperCAmelCase		)




from __future__ import annotations




def        lowerCAmelCase_			(					__A							)					->    bool:







      '''simple docstring'''


      UpperCAmelCase__								=  str(__A							)
      return n == n[::-1]




def        lowerCAmelCase_			(					__A = 1_000_000							)					->    Optional[int]:







      '''simple docstring'''


      UpperCAmelCase__								=  0

      for i in range(1,  __A							):
            if is_palindrome(__A							) and is_palindrome(bin(__A							).split("b"							)[1]							):
                  total += i
      return total


if __name__ == "__main__":
      print(solution(int(str(input().strip()))))



