






"""simple docstring"""


lowercase_								=	{
    '0000': '0',
    '0001': '1',
    '0010': '2',
    '0011': '3',
    '0100': '4',
    '0101': '5',
    '0110': '6',
    '0111': '7',
    '1000': '8',
    '1001': '9',
    '1010': 'a',
    '1011': 'b',
    '1100': 'c',
    '1101': 'd',
    '1110': 'e',
    '1111': 'f',
}



def    lowerCAmelCase							(       __UpperCamelCase					):




  """simple docstring"""







  __A		     =					str(__UpperCamelCase					).strip()

  # Exceptions
  if not binary_str:
    raise ValueError('''Empty string was passed to the function'''					)
  __A		     =					binary_str[0] == '''-'''
  __A		     =					binary_str[1:] if is_negative else binary_str
  if not all(char in '''01''' for char in binary_str					):
    raise ValueError('''Non-binary value was passed to the function'''					)

  __A		     =					(
      '''0''' * (4 * (divmod(len(__UpperCamelCase					)						,			4					)[0] + 1) - len(__UpperCamelCase					)) + binary_str
  )

  __A		     =					[]
  for x in range(0						,			len(__UpperCamelCase					)						,			4					):
    hexadecimal.append(BITS_TO_HEX[binary_str[x : x + 4]]					)
  __A		     =					'''0x''' + ''''''.join(__UpperCamelCase					)

  return "-" + hexadecimal_str if is_negative else hexadecimal_str


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

       testmod()











import math
from decimal import Decimal, getcontext


def      SCREAMING_SNAKE_CASE      (   lowerCAmelCase = 4_000_000       ):

       try:
              _UpperCamelCase														=    int(lowerCAmelCase       )
       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														=    100
       _UpperCamelCase														=    (Decimal(5       ) ** Decimal(0.5       ) + 1) / Decimal(2       )

       _UpperCamelCase														=    (math.floor(math.log(n * (phi + 2)     ,							lowerCAmelCase       ) - 1       ) // 3) * 3 + 2
       _UpperCamelCase														=    Decimal(round(phi ** Decimal(index + 1       )       )       ) / (phi + 2)
       _UpperCamelCase														=    num // 2
       return int(lowerCAmelCase       )


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






