






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





def  _a(  UpperCamelCase__				:						str,	UpperCamelCase__				:						str							):




      '''simple docstring'''






      SCREAMING_SNAKE_CASE__     :				Optional[Any]									=first_str.lower().strip()
      SCREAMING_SNAKE_CASE__     :				Optional[Any]									=second_str.lower().strip()

      # Remove whitespace
      SCREAMING_SNAKE_CASE__     :				Tuple									=first_str.replace(''' ''',	''''''							)
      SCREAMING_SNAKE_CASE__     :				List[str]									=second_str.replace(''' ''',	''''''							)

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

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

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

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







'''simple docstring'''
def  _a(  UpperCamelCase__				:						str,	UpperCamelCase__				:						str							):




      '''simple docstring'''






      SCREAMING_SNAKE_CASE__     :				Optional[int]									=len(UpperCamelCase__							)
      SCREAMING_SNAKE_CASE__     :				Optional[Any]									=len(UpperCamelCase__							)
      SCREAMING_SNAKE_CASE__     :				Tuple									=[[False for _ in range(m + 1							)] for _ in range(n + 1							)]
      SCREAMING_SNAKE_CASE__     :				List[Any]									=True
      for i in range(UpperCamelCase__							):
            for j in range(m + 1							):
                  if dp[i][j]:
                        if j < m and a[i].upper() == b[j]:
                              SCREAMING_SNAKE_CASE__     :				Optional[int]									=True
                        if a[i].islower():
                              SCREAMING_SNAKE_CASE__     :				List[Any]									=True
      return dp[n][m]


if __name__ == "__main__":
  import doctest

  doctest.testmod()