
'''simple docstring'''
from collections import defaultdict







def        A_     (						__SCREAMING_SNAKE_CASE						:  str			,     __SCREAMING_SNAKE_CASE						:  str )				->       bool:





  """simple docstring"""

  __A		:     int												=		first_str.lower().strip()
  __A		:     Tuple												=		second_str.lower().strip()

  # Remove whitespace
  __A		:     str												=		first_str.replace(""" """			,     """""" )
  __A		:     Union[str, Any]												=		second_str.replace(""" """			,     """""" )

  # Strings of different lengths are not anagrams
  if len(__SCREAMING_SNAKE_CASE ) != len(__SCREAMING_SNAKE_CASE ):
    return False

  # Default values for count should be 0
  __A		:     defaultdict[str, int]												=		defaultdict(__SCREAMING_SNAKE_CASE )

  # For each character in input strings,
  # increment count in the corresponding
  for i in range(len(__SCREAMING_SNAKE_CASE ) ):
    count[first_str[i]] += 1
    count[second_str[i]] -= 1

  return all(_count == 0 for _count in count.values() )


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

     testmod()
     A__   :		Optional[Any] 		=input('Enter the first string ').strip()
     A__   :		Optional[Any] 		=input('Enter the second string ').strip()

     A__   :		str 		=check_anagrams(input_a, input_b)
     print(F"{input_a} and {input_b} are {'' if status else 'not '}anagrams.")





'''simple docstring'''
from collections.abc import Sequence







def        A_     (						__SCREAMING_SNAKE_CASE						:  Sequence[float]			,     __SCREAMING_SNAKE_CASE						:  bool = False )				->       float:





  """simple docstring"""

  if not arr:
    return 0

  __A		:     Any												=		0 if allow_empty_subarrays else float("""-inf""" )
  __A		:     List[Any]												=		0.0
  for num in arr:
    __A		:     Tuple												=		max(0 if allow_empty_subarrays else num			,     curr_sum + num )
    __A		:     Optional[int]												=		max(__SCREAMING_SNAKE_CASE			,     __SCREAMING_SNAKE_CASE )

  return max_sum


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

     testmod()

     A__   :		Any 		=[-2, 1, -3, 4, -1, 2, 1, -5, 4]
     print(F"{max_subarray_sum(nums) = }")



