




def  snake_case(    __magic_name__   )			->							int:





     '''simple docstring'''


     lowercase :       Dict       =			hex_num.strip()
     if not hex_num:
          raise ValueError('''No value was passed to the function'''   )

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

     try:
          lowercase :       Optional[Any]       =			int(__magic_name__			,		16   )
     except ValueError:
          raise ValueError('''Invalid value was passed to the function'''   )

     lowercase :       Dict       =			''''''
     while int_num > 0:
          lowercase :       Optional[Any]       =			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  snake_case(    __magic_name__			,		__magic_name__   )			->							bool:





     '''simple docstring'''


     lowercase :       List[Any]       =			len(__magic_name__   )
     lowercase :       str       =			[[False] * (required_sum + 1) for _ in range(arr_len + 1   )]

     # for each arr value, a sum of zero(0) can be formed by not taking any element
     # hence True/1
     for i in range(arr_len + 1   ):
          lowercase :       List[str]       =			True

     # sum is not zero and set is empty then false
     for i in range(1			,		required_sum + 1   ):
          lowercase :       str       =			False

     for i in range(1			,		arr_len + 1   ):
          for j in range(1			,		required_sum + 1   ):
               if arr[i - 1] > j:
                    lowercase :       Optional[Any]       =			subset[i - 1][j]
               if arr[i - 1] <= j:
                    lowercase :       Dict       =			subset[i - 1][j] or subset[i - 1][j - arr[i - 1]]

     return subset[arr_len][required_sum]


if __name__ == "__main__":
 import doctest

 doctest.testmod()