






'''simple docstring'''







from collections import defaultdict





def  SCREAMING_SNAKE_CASE_       (UpperCamelCase				,			UpperCamelCase      )      ->       bool:
							lowerCamelCase__					:	List[str]         =       first_str.lower().strip()
							lowerCamelCase__					:	Dict         =       second_str.lower().strip()

							# Remove whitespace
							lowerCamelCase__					:	int         =       first_str.replace(""" """				,			""""""      )
							lowerCamelCase__					:	Optional[int]         =       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__					:	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	:			Optional[Any]         =input('''Enter the first string ''').strip()
			_A	:			str         =input('''Enter the second string ''').strip()

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









'''simple docstring'''







def  SCREAMING_SNAKE_CASE_       (UpperCamelCase				,			UpperCamelCase      )      ->       int:
							return abs(UpperCamelCase      ) if a == 0 else greatest_common_divisor(b % a				,			UpperCamelCase      )





def  SCREAMING_SNAKE_CASE_       (UpperCamelCase				,			UpperCamelCase      )      ->       int:
							while y:  # --> when y=0 then loop will terminate and return x as final GCD.
														lowerCamelCase__  ,		lowerCamelCase__					:	Tuple         =       y, x % y
							return abs(UpperCamelCase      )





def  SCREAMING_SNAKE_CASE_       ()      ->       Tuple:
							try:
														lowerCamelCase__					:	Dict         =       input("""Enter two integers separated by comma (,): """      ).split(""","""      )
														lowerCamelCase__					:	Any         =       int(nums[0]      )
														lowerCamelCase__					:	Optional[Any]         =       int(nums[1]      )
														print(
														    f'''greatest_common_divisor({num_a}, {num_a}) = '''
														    f'''{greatest_common_divisor(UpperCamelCase				,			UpperCamelCase      )}'''      )
														print(f'''By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(UpperCamelCase				,			UpperCamelCase      )}'''      )
							except (IndexError, UnboundLocalError, ValueError):
														print("""Wrong input"""      )


if __name__ == "__main__":
			main()

