


def 		_UpperCAmelCase							(     SCREAMING_SNAKE_CASE__     :   Tuple = 20							):







     try:
          __UpperCamelCase       				=int(lowercase__							)
     except (TypeError, ValueError):
          raise TypeError('Parameter n must be int or castable to int.'							)
     if n <= 0:
          raise ValueError('Parameter n must be greater than or equal to one.'							)
     __UpperCamelCase       				=0
     while 1:
          i += n * (n - 1)
          __UpperCamelCase       				=0
          for j in range(2     ,	lowercase__							):
               if i % j != 0:
                    __UpperCamelCase       				=1
                    break
          if nfound == 0:
               if i == 0:
                    __UpperCamelCase       				=1
               return i
     return None


if __name__ == "__main__":
   print(f"""{solution() = }""")










'''simple docstring'''


from math import floor, sqrt






def 			UpperCAmelCase_							(		lowercase__							):


     '''simple docstring'''







     a_									=0.0
     a_									=1.0
     a_									=int(sqrt(lowercase__							)							)
     a_									=root
     a_									=0
     while integer_part != 2 * root:
          a_									=denominator * integer_part - numerator
          a_									=(n - numerator**2) / denominator
          a_									=int((root + numerator) / denominator							)
          period += 1
     return period






def 			UpperCAmelCase_							(		lowercase__ = 1_0_0_0_0							):


     '''simple docstring'''







     a_									=0
     for i in range(2							,						n + 1							):
          a_									=sqrt(lowercase__							)
          if sr - floor(lowercase__							) != 0 and continuous_fraction_period(lowercase__							) % 2 == 1:
               count_odd_periods += 1
     return count_odd_periods


if __name__ == "__main__":
  print(F"""{solution(int(input().strip()))}""")


