

def      _lowerCAmelCase(	__A			):
  UpperCAmelCase					      =  hex_num.strip()
  if not hex_num:
    raise ValueError("No value was passed to the function"			)

  UpperCAmelCase					      =  hex_num[0] == "-"
  if is_negative:
    UpperCAmelCase					      =  hex_num[1:]

  try:
    UpperCAmelCase					      =  int(__A   ,       16			)
  except ValueError:
    raise ValueError("Invalid value was passed to the function"			)

  UpperCAmelCase					      =  ""
  while int_num > 0:
    UpperCAmelCase					      =  str(int_num % 2			) + bin_str
    int_num >>= 1

  return int(("-" + bin_str) if is_negative else bin_str			)


if __name__ == "__main__":
      import doctest

      doctest.testmod()






def      _lowerCAmelCase(	__A			):

  if not isinstance(__A   ,       __A			):
    raise TypeError("only integers accepted as input"			)
  else:
    UpperCAmelCase					      =  str(abs(__A			)			)
    UpperCAmelCase					      =  [list(__A			) for char in range(len(__A			)			)]
    for index in range(len(__A			)			):
      num_transpositions[index].pop(__A			)
    return max(
        int("".join(list(__A			)			)			) for transposition in num_transpositions			)


if __name__ == "__main__":
      __import__("doctest").testmod()



