'''simple docstring'''

def  _lowerCAmelCase				(				__a      )  ->      float:
     '''simple docstring'''







     return -num if num < 0 else num



def  _lowerCAmelCase				(				__a      )  ->      int:
     '''simple docstring'''







     if len(__a      ) == 0:
          raise ValueError("""abs_min() arg is an empty sequence"""      )
     _UpperCamelCase  :Optional[Any]       =x[0]
     for i in x:
          if abs_val(__a      ) < abs_val(__a      ):
               _UpperCamelCase  :Any       =i
     return j



def  _lowerCAmelCase				(				__a      )  ->      int:
     '''simple docstring'''







     if len(__a      ) == 0:
          raise ValueError("""abs_max() arg is an empty sequence"""      )
     _UpperCamelCase  :Optional[Any]       =x[0]
     for i in x:
          if abs(__a      ) > abs(__a      ):
               _UpperCamelCase  :Any       =i
     return j



def  _lowerCAmelCase				(				__a      )  ->      int:
     '''simple docstring'''







     if len(__a      ) == 0:
          raise ValueError("""abs_max_sort() arg is an empty sequence"""      )
     return sorted(__a			,      key=__a      )[-1]



def  _lowerCAmelCase				(				)  ->      int:
     '''simple docstring'''







     assert abs_val(0      ) == 0
     assert abs_val(34      ) == 34
     assert abs_val(-10_00_00_00_00_00      ) == 10_00_00_00_00_00

     _UpperCamelCase  :Dict       =[-3, -1, 2, -11]
     assert abs_max(__a      ) == -11
     assert abs_max_sort(__a      ) == -11
     assert abs_min(__a      ) == -1


if __name__ == "__main__":
      import doctest

      doctest.testmod()

      test_abs_val()
      print(abs_val(-34))  # --> 34



'''simple docstring'''



def       _a      (		_lowercase   :      str    ):





     '''simple docstring'''






     __UpperCAmelCase      :					Union[str, Any]    				=     5381
     for x in s:
          __UpperCAmelCase      :					Union[str, Any]    				=     ((hash_value << 5) + hash_value) + ord(_lowercase    )
     return hash_value & 0XFFFFFFFF