





"""simple docstring"""






def       __lowerCamelCase    (       SCREAMING_SNAKE_CASE							)		->       bool:






       """simple docstring"""




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

def       __lowerCamelCase    (       SCREAMING_SNAKE_CASE = 99							)		->       int:






       """simple docstring"""




       if not 0 < percent < 100:
              raise ValueError('solution() only accepts values from 0 to 100'							)
       _UpperCAmelCase     =     0
       _UpperCAmelCase     =     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)}''')









"""simple docstring"""






def       __lowerCamelCase    (       SCREAMING_SNAKE_CASE,SCREAMING_SNAKE_CASE							)		->       str:






       """simple docstring"""




       if a < 0 or b < 0:
              raise ValueError('the value of both inputs must be positive'							)

       _UpperCAmelCase     =     str(bin(SCREAMING_SNAKE_CASE							)							)[2:]  # remove the leading "0b"
       _UpperCAmelCase     =     str(bin(SCREAMING_SNAKE_CASE							)							)[2:]  # remove the leading "0b"

       _UpperCAmelCase     =     max(len(SCREAMING_SNAKE_CASE							),len(SCREAMING_SNAKE_CASE							)							)

       return "0b" + "".join(
           str(int(char_a == '1' and char_b == '1'							)							)
           for char_a, char_b in zip(a_binary.zfill(SCREAMING_SNAKE_CASE							),b_binary.zfill(SCREAMING_SNAKE_CASE							)							)							)


if __name__ == "__main__":
    import doctest

    doctest.testmod()






