
"""simple docstring"""


from __future__ import annotations






def  lowercase						(	lowerCAmelCase__						):
			lowerCamelCase_					=  str(lowerCAmelCase__						)
			return n == n[::-1]






def  lowercase						(	lowerCAmelCase__ = 1_000_000						):
			lowerCamelCase_					=  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()))))






__snake_case				:      int   		=			[
    """Audio""",
    """Array2D""",
    """Array3D""",
    """Array4D""",
    """Array5D""",
    """ClassLabel""",
    """Features""",
    """Sequence""",
    """Value""",
    """Image""",
    """Translation""",
    """TranslationVariableLanguages""",
]
from .audio import Audio
from .features import ArrayaD, ArrayaD, ArrayaD, ArrayaD, ClassLabel, Features, Sequence, Value
from .image import Image
from .translation import Translation, TranslationVariableLanguages


