



from __future__ import annotations






def 	_lowerCAmelCase						(				__lowerCamelCase   :     int | str     ):



 """simple docstring"""





 __SCREAMING_SNAKE_CASE       :    str       =	str(__lowerCamelCase     )
 return n == n[::-1]






def 	_lowerCAmelCase						(				__lowerCamelCase   :     int = 1000000     ):



 """simple docstring"""





 __SCREAMING_SNAKE_CASE       :    int       =	0

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


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











import warnings

from ...utils import logging
from .image_processing_layoutlmva import LayoutLMvaImageProcessor


_lowerCamelCase						    =  logging.get_logger(__name__)

class       _SCREAMING_SNAKE_CASE	(UpperCamelCase ):





     def __init__(       self :							int     ,  *UpperCamelCase :							Optional[int]     ,  **UpperCamelCase :							Optional[int]				)->None:
      warnings.warn(
          "The class LayoutLMv2FeatureExtractor is deprecated and will be removed in version 5 of Transformers."
          " Please use LayoutLMv2ImageProcessor instead."     ,  UpperCamelCase     ,  )
      super().__init__(*UpperCamelCase     ,  **UpperCamelCase				)






