



'''simple docstring'''


def  UpperCAmelCase_       (		lowercase__       ):


     '''simple docstring'''







     if not isinstance(lowercase__       ,	lowercase__       ):
          raise ValueError("check_bouncy() accepts only integer arguments"       )
     a_       		=str(lowercase__       )
     a_       		="".join(sorted(lowercase__       )       )
     return sorted_str_n != str_n and sorted_str_n[::-1] != str_n






def  UpperCAmelCase_       (		lowercase__ = 9_9       ):


     '''simple docstring'''







     if not 0 < percent < 1_0_0:
          raise ValueError("solution() only accepts values from 0 to 100"       )
     a_       		=0
     a_       		=1

     while True:
          if check_bouncy(lowercase__       ):
               bouncy_num += 1
          if (bouncy_num / num) * 1_0_0 >= percent:
               return num
          num += 1


if __name__ == "__main__":
  from doctest import testmod

  testmod()
  print(F"""{solution(99)}""")







'''simple docstring'''


from collections.abc import Generator






def  UpperCAmelCase_       (		):


     '''simple docstring'''







     a_		,						a_       		=0, 1
     while True:
          a_		,						a_       		=b, a + b
          yield b






def  UpperCAmelCase_       (		lowercase__ = 1_0_0_0       ):


     '''simple docstring'''







     a_       		=1
     a_       		=fibonacci_generator()
     while len(str(next(lowercase__       )       )       ) < n:
          answer += 1
     return answer + 1


if __name__ == "__main__":
  print(solution(int(str(input()).strip())))


