



from collections import defaultdict

def 	SCREAMING_SNAKE_CASE_							(	_snake_case	:List[str]	,   _snake_case	:str				)  ->     bool:
   _A      =       first_str.lower().strip()
   _A      =       second_str.lower().strip()

   # Remove whitespace
   _A      =       first_str.replace(''' '''	,   ''''''				)
   _A      =       second_str.replace(''' '''	,   ''''''				)

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

   # Default values for count should be 0
   _A      =       defaultdict(_snake_case				)

   # For each character in input strings,
   # increment count in the corresponding
   for i in range(len(_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()
   UpperCAmelCase_		 =					input("""Enter the first string """).strip()
   UpperCAmelCase_		 =					input("""Enter the second string """).strip()

   UpperCAmelCase_		 =					check_anagrams(input_a, input_b)
   print(f'{input_a} and {input_b} are {"" if status else "not "}anagrams.')









from collections import defaultdict


def 					_a							(					lowerCAmelCase    ,						lowerCAmelCase )->	bool:
		SCREAMING_SNAKE_CASE_					      =							first_str.lower().strip()
		SCREAMING_SNAKE_CASE_					      =							second_str.lower().strip()

		# Remove whitespace
		SCREAMING_SNAKE_CASE_					      =							first_str.replace(' '    ,						'' )
		SCREAMING_SNAKE_CASE_					      =							second_str.replace(' '    ,						'' )

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

		# Default values for count should be 0
		SCREAMING_SNAKE_CASE_					      =							defaultdict(lowerCAmelCase )

		# For each character in input strings,
		# increment count in the corresponding
		for i in range(len(lowerCAmelCase ) ):
				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()
						SCREAMING_SNAKE_CASE:     Dict									= input('''Enter the first string ''').strip()
						SCREAMING_SNAKE_CASE:     str									= input('''Enter the second string ''').strip()

						SCREAMING_SNAKE_CASE:     Optional[Any]									= check_anagrams(input_a, input_b)
						print(f"""{input_a} and {input_b} are {'' if status else 'not '}anagrams.""")