



from __future__ import annotations







def     UpperCAmelCase_		(					snake_case__					)	->     bool:



				"""simple docstring"""





				lowerCAmelCase__		  =  str(_UpperCAmelCase					)
				return n == n[::-1]







def     UpperCAmelCase_		(					snake_case__ = 1000000					)	->     Any:



				"""simple docstring"""





				lowerCAmelCase__		  =  0

				for i in range(1    ,			_UpperCAmelCase					):
								if is_palindrome(_UpperCAmelCase					) and is_palindrome(bin(_UpperCAmelCase					).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_flava import FlavaImageProcessor


UpperCamelCase_						:     List[str]	       =							logging.get_logger(__name__)




class   __lowercase						(						__snake_case       ):






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




