


from collections import defaultdict



def     __lowerCAmelCase						(							snake_case	:    Any						,      snake_case	:    List[Any] )       ->							bool:
   __lowerCamelCase:				Tuple     =	first_str.lower().strip()
   __lowerCamelCase:				int     =	second_str.lower().strip()

   # Remove whitespace
   __lowerCamelCase:				List[str]     =	first_str.replace(""" """						,      """""" )
   __lowerCamelCase:				Dict     =	second_str.replace(""" """						,      """""" )

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

   # Default values for count should be 0
   __lowerCamelCase:				Any     =	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		:				Union[str, Any]									=       input('''Enter the first string ''').strip()
   _A		:				List[str]									=       input('''Enter the second string ''').strip()

   _A		:				Union[str, Any]									=       check_anagrams(input_a, input_b)
   print(F"""{input_a} and {input_b} are {"" if status else "not "}anagrams.""")






def     __lowerCAmelCase						(							snake_case	:    int = 1000000 )       ->							int:
   __lowerCamelCase:				Union[str, Any]     =	set(range(3						,      snake_case						,      2 ) )
   primes.add(2 )
   for p in range(3						,      snake_case						,      2 ):
      if p not in primes:
         continue
      primes.difference_update(set(range(p * p						,      snake_case						,      snake_case ) ) )

   __lowerCamelCase:				Any     =	[float(snake_case ) for n in range(limit + 1 )]

   for p in primes:
      for n in range(snake_case						,      limit + 1						,      snake_case ):
         phi[n] *= 1 - 1 / p

   return int(sum(phi[2:] ) )


if __name__ == "__main__":
   print(F"""{solution() = }""")


