


'''simple docstring'''







from __future__ import annotations







def _UpperCamelCase       (     __A    )							->		bool:


      '''simple docstring'''



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







def _UpperCamelCase       (     __A = 1000000    )							->		Tuple:


      '''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()))))










def 	__UpperCamelCase	(  _lowerCAmelCase      ,     _lowerCAmelCase		)       ->  int:



    """simple docstring"""






    while second != 0:
        A :       int          =   first & second
        first ^= second
        A :       Tuple          =   c << 1
    return first


if __name__ == "__main__":
     import doctest

     doctest.testmod()

     SCREAMING_SNAKE_CASE_:int             =						int(input("""Enter the first number: """).strip())
     SCREAMING_SNAKE_CASE_:Optional[int]             =						int(input("""Enter the second number: """).strip())
     print(F"""{add(first, second) = }""")


