




def 						lowercase		(     _lowerCAmelCase      ):
  UpperCAmelCase__    						=   str(_lowerCAmelCase      ).strip()
  if not oct_string:
    raise ValueError("""Empty string was passed to the function"""      )
  UpperCAmelCase__    						=   oct_string[0] == """-"""
  if is_negative:
    UpperCAmelCase__    						=   oct_string[1:]
  if not oct_string.isdigit() or not all(0 <= int(_lowerCAmelCase      ) <= 7 for char in oct_string      ):
    raise ValueError("""Non-octal value was passed to the function"""      )
  UpperCAmelCase__    						=   0
  for char in oct_string:
    UpperCAmelCase__    						=   8 * decimal_number + int(_lowerCAmelCase      )
  if is_negative:
    UpperCAmelCase__    						=   -decimal_number
  return decimal_number


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

   testmod()










def 						lowercase		(     _lowerCAmelCase      ):
  UpperCAmelCase__    						=   5381
  for x in s:
    UpperCAmelCase__    						=   ((hash_value << 5) + hash_value) + ord(_lowerCAmelCase      )
  return hash_value & 0xffffffff




