





'''simple docstring'''


class    lowerCAmelCase_		:




 def __init__(	self			,     _lowerCAmelCase		)    ->							List[Any]:
     _lowerCAmelCase				=				n
     _lowerCAmelCase				=				[None] * self.n
     _lowerCAmelCase				=				0  # index of the first element
     _lowerCAmelCase				=				0
     _lowerCAmelCase				=				0




 def __len__(	self		)    ->							int:
     return self.size




 def 							_snake_case   (	self		)    ->							bool:
     return self.size == 0




 def 							_snake_case   (	self		)    ->							Optional[Any]:
     return False if self.is_empty() else self.array[self.front]




 def 							_snake_case   (	self			,     _lowerCAmelCase		)    ->							str:







     if self.size >= self.n:
         raise Exception("QUEUE IS FULL"		)

     _lowerCAmelCase				=				data
     _lowerCAmelCase				=				(self.rear + 1) % self.n
     self.size += 1
     return self





 def 							_snake_case   (	self		)    ->							Optional[Any]:







     if self.size == 0:
         raise Exception("UNDERFLOW"		)

     _lowerCAmelCase				=				self.array[self.front]
     _lowerCAmelCase				=				None
     _lowerCAmelCase				=				(self.front + 1) % self.n
     self.size -= 1
     return temp









'''simple docstring'''


def 	__a(SCREAMING_SNAKE_CASE_  :					int    ):



    '''simple docstring'''





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


def 	__a(SCREAMING_SNAKE_CASE_  :					float = 99    ):



    '''simple docstring'''





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

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


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

       testmod()
       print(f'''{solution(99)}''')


