def       A__   (						snake_case_			:		str   ):
 SCREAMING_SNAKE_CASE__: int=   hex_num.strip()
 if not hex_num:
  raise ValueError('''No value was passed to the function'''   )

 SCREAMING_SNAKE_CASE__: Optional[Any]=   hex_num[0] == '''-'''
 if is_negative:
  SCREAMING_SNAKE_CASE__: Optional[int]=   hex_num[1:]

 try:
  SCREAMING_SNAKE_CASE__: List[str]=   int(snake_case_							,					16   )
 except ValueError:
  raise ValueError('''Invalid value was passed to the function'''   )

 SCREAMING_SNAKE_CASE__: Optional[Any]=   ''''''
 while int_num > 0:
  SCREAMING_SNAKE_CASE__: int=   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()






import re



def 		lowerCAmelCase__     (       UpperCamelCase_					:							str						)->	str:

    if len(re.findall('''[ATCG]'''			,							UpperCamelCase_						)						) != len(UpperCamelCase_						):
        raise ValueError('''Invalid Strand'''						)

    return dna.translate(dna.maketrans('''ATCG'''			,							'''TAGC'''						)						)


if __name__ == "__main__":
   import doctest

   doctest.testmod()
