
'''simple docstring'''



from collections import defaultdict


def A (__lowerCamelCase :str					,      __lowerCamelCase :str						):
						_lowerCAmelCase    		=					first_str.lower().strip()
						_lowerCAmelCase    		=					second_str.lower().strip()

						# Remove whitespace
						_lowerCAmelCase    		=					first_str.replace(""" """					,      """"""						)
						_lowerCAmelCase    		=					second_str.replace(""" """					,      """"""						)

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

						# Default values for count should be 0
						_lowerCAmelCase    		=					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()
						_lowercase          =						input("""Enter the first string """).strip()
						_lowercase          =						input("""Enter the second string """).strip()

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


'''simple docstring'''



from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


_lowercase          =						{"""configuration_vit_mae""": ["""VIT_MAE_PRETRAINED_CONFIG_ARCHIVE_MAP""", """ViTMAEConfig"""]}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_lowercase          =						[
						    """VIT_MAE_PRETRAINED_MODEL_ARCHIVE_LIST""",
						    """ViTMAEForPreTraining""",
						    """ViTMAELayer""",
						    """ViTMAEModel""",
						    """ViTMAEPreTrainedModel""",
						]

try:
						if not is_tf_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_lowercase          =						[
						    """TFViTMAEForPreTraining""",
						    """TFViTMAEModel""",
						    """TFViTMAEPreTrainedModel""",
						]

if TYPE_CHECKING:
						from .configuration_vit_mae import VIT_MAE_PRETRAINED_CONFIG_ARCHIVE_MAP, ViTMAEConfig

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_vit_mae import (
												    VIT_MAE_PRETRAINED_MODEL_ARCHIVE_LIST,
												    ViTMAEForPreTraining,
												    ViTMAELayer,
												    ViTMAEModel,
												    ViTMAEPreTrainedModel,
												)

						try:
												if not is_tf_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_tf_vit_mae import TFViTMAEForPreTraining, TFViTMAEModel, TFViTMAEPreTrainedModel


else:
						import sys

						_lowercase          =						_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)
