



from collections import defaultdict

def       A__(		__lowerCAmelCase	,			__lowerCAmelCase ):
				_snake_case :			Tuple  						=   first_str.lower().strip()
				_snake_case :			List[Any]  						=   second_str.lower().strip()

				# Remove whitespace
				_snake_case :			Optional[int]  						=   first_str.replace(' '	,			'' )
				_snake_case :			List[Any]  						=   second_str.replace(' '	,			'' )

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

				# Default values for count should be 0
				_snake_case :			str  						=   defaultdict(lowercase__ )

				# For each character in input strings,
				# increment count in the corresponding
				for i in range(len(lowercase__ ) ):
								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_		:				int				=						input('''Enter the first string ''').strip()
		lowercase_		:				int				=						input('''Enter the second string ''').strip()

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













import functools

def       A__(		__lowerCAmelCase	,			__lowerCAmelCase ):

				# Validation
				if not isinstance(__lowerCAmelCase	,			__lowerCAmelCase ) or not all(isinstance(__lowerCAmelCase	,			__lowerCAmelCase ) for day in days ):
								raise ValueError('The parameter days should be a list of integers' )

				if len(__lowerCAmelCase ) != 3 or not all(isinstance(__lowerCAmelCase	,			__lowerCAmelCase ) for cost in costs ):
								raise ValueError('The parameter costs should be a list of three integers' )

				if len(__lowerCAmelCase ) == 0:
								return 0

				if min(__lowerCAmelCase ) <= 0:
								raise ValueError('All days elements should be greater than 0' )

				if max(__lowerCAmelCase ) >= 3_66:
								raise ValueError('All days elements should be less than 366' )

				_snake_case :			Optional[int]  						=   set(__lowerCAmelCase )

				@functools.cache
				def dynamic_programming(__lowerCAmelCase ) -> int:
								if index > 3_65:
												return 0

								if index not in days_set:
												return dynamic_programming(index + 1 )

								return min(
								    costs[0] + dynamic_programming(index + 1 )	,			costs[1] + dynamic_programming(index + 7 )	,			costs[2] + dynamic_programming(index + 30 )	,			)

				return dynamic_programming(1 )


if __name__ == "__main__":
		import doctest

		doctest.testmod()






