


from collections import defaultdict
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__      ,	SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							List[str]		 =						first_str.lower().strip()
 __lowerCamelCase		:							Any		 =						second_str.lower().strip()

 # Remove whitespace
 __lowerCamelCase		:							str		 =						first_str.replace(' '      ,	''						)
 __lowerCamelCase		:							Dict		 =						second_str.replace(' '      ,	''						)

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

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

 # For each character in input strings,
 # increment count in the corresponding
 for i in range(len(SCREAMING_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()
       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.""")





from typing import TYPE_CHECKING

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


lowercase_	   =     {
    'configuration_convnext': ['CONVNEXT_PRETRAINED_CONFIG_ARCHIVE_MAP', 'ConvNextConfig', 'ConvNextOnnxConfig']
}

try:
       if not is_vision_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       lowercase_	   =     ['ConvNextFeatureExtractor']
       lowercase_	   =     ['ConvNextImageProcessor']

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       lowercase_	   =     [
           'CONVNEXT_PRETRAINED_MODEL_ARCHIVE_LIST',
           'ConvNextForImageClassification',
           'ConvNextModel',
           'ConvNextPreTrainedModel',
           'ConvNextBackbone',
       ]

try:
       if not is_tf_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       lowercase_	   =     [
           'TFConvNextForImageClassification',
           'TFConvNextModel',
           'TFConvNextPreTrainedModel',
       ]

if TYPE_CHECKING:
       from .configuration_convnext import CONVNEXT_PRETRAINED_CONFIG_ARCHIVE_MAP, ConvNextConfig, ConvNextOnnxConfig

       try:
              if not is_vision_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .feature_extraction_convnext import ConvNextFeatureExtractor
              from .image_processing_convnext import ConvNextImageProcessor

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_convnext import (
                  CONVNEXT_PRETRAINED_MODEL_ARCHIVE_LIST,
                  ConvNextBackbone,
                  ConvNextForImageClassification,
                  ConvNextModel,
                  ConvNextPreTrainedModel,
              )

       try:
              if not is_tf_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_tf_convnext import TFConvNextForImageClassification, TFConvNextModel, TFConvNextPreTrainedModel


else:
       import sys

       lowercase_	   =     _LazyModule(__name__, globals()['__file__'], _import_structure)

