

from collections import defaultdict

def 						UpperCamelCase					(lowercase_: str    ,      lowercase_: str					)     ->      bool:
	A__							:    Optional[Any]        =		first_str.lower().strip()
	A__							:    List[str]        =		second_str.lower().strip()

	# Remove whitespace
	A__							:    int        =		first_str.replace(""" """    ,      """"""					)
	A__							:    List[Any]        =		second_str.replace(""" """    ,      """"""					)

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

	# Default values for count should be 0
	A__							:    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_       : Tuple         =			input('Enter the first string ').strip()
	A_       : Optional[int]         =			input('Enter the second string ').strip()

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







'''simple docstring'''







# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works
from ...utils import deprecate
from ..controlnet.multicontrolnet import MultiControlNetModel  # noqa: F401
from ..controlnet.pipeline_controlnet import StableDiffusionControlNetPipeline  # noqa: F401


deprecate(
    '''stable diffusion controlnet''',
    '''0.22.0''',
    '''Importing `StableDiffusionControlNetPipeline` or `MultiControlNetModel` from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion_controlnet is deprecated. Please import `from diffusers import StableDiffusionControlNetPipeline` instead.''',
    standard_warn=False,
    stacklevel=3,
)


