def        lowerCAmelCase_			(					__A							)					->    int:







      '''simple docstring'''


      assert isinstance(__A,  __A							), f"""The input value of [n={number}] is not an integer"""

      if number == 1:
            return 2
      elif number < 1:
            UpperCAmelCase__								=  f"""The input value of [n={number}] has to be > 0"""
            raise ValueError(__A							)
      else:
            UpperCAmelCase__								=  sylvester(number - 1							)
            UpperCAmelCase__								=  num - 1
            UpperCAmelCase__								=  num
            return lower * upper + 1


if __name__ == "__main__":
      print(f'''The 8th number in Sylvester\'s sequence: {sylvester(8)}''')
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()))))



