
"""simple docstring"""




def  _lowerCAmelCase		(		_UpperCamelCase						):






  """simple docstring"""



  if not isinstance(_UpperCamelCase ,				_UpperCamelCase						):
    raise ValueError('''check_bouncy() accepts only integer arguments'''						)
  _lowercase:			Dict       =     str(_UpperCamelCase						)
  _lowercase:			List[Any]       =     ''''''.join(sorted(_UpperCamelCase						)						)
  return sorted_str_n != str_n and sorted_str_n[::-1] != str_n




def  _lowerCAmelCase		(		_UpperCamelCase = 99						):






  """simple docstring"""



  if not 0 < percent < 100:
    raise ValueError('''solution() only accepts values from 0 to 100'''						)
  _lowercase:			List[Any]       =     0
  _lowercase:			Any       =     1

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


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

  testmod()
  print(f"""{solution(9_9)}""")


"""simple docstring"""




def  _lowerCAmelCase		(		_UpperCamelCase						):






  """simple docstring"""



  if num <= 0:
    raise ValueError('''Input must be a positive integer'''						)

  _lowercase:			Tuple       =     [True] * (num + 1)

  _lowercase:			List[str]       =     2
  while p * p <= num:
    if primes[p]:
      for i in range(p * p ,				num + 1 ,				_UpperCamelCase						):
        _lowercase:			List[str]       =     False
    p += 1

  return [prime for prime in range(2 ,				num + 1						) if primes[prime]]


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  A__   :					List[Any]							=   int(input('Enter a positive integer: ').strip())
  print(prime_sieve_eratosthenes(user_num))
