



_lowercase     							=						[4, 1, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
_lowercase     							=						[3, 7, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
_lowercase     							=						{
    0: '''Sunday''',
    1: '''Monday''',
    2: '''Tuesday''',
    3: '''Wednesday''',
    4: '''Thursday''',
    5: '''Friday''',
    6: '''Saturday''',
}






def      _A				(UpperCamelCase		:      int      ,			UpperCamelCase		:      int      ,			UpperCamelCase		:      int )  ->str:



			'''simple docstring'''







			assert len(str(UpperCamelCase ) ) > 2, "year should be in YYYY format"
			assert 1 <= month <= 12, "month should be between 1 to 12"
			assert 1 <= day <= 31, "day should be between 1 to 31"

			# Doomsday algorithm:
			lowerCamelCase__ :      Optional[Any]								=		year // 100
			lowerCamelCase__ :      str								=		(5 * (century % 4) + 2) % 7
			lowerCamelCase__ :      Tuple								=		year % 100
			lowerCamelCase__ :      str								=		centurian % 12
			lowerCamelCase__ :      int								=		(
			    (centurian // 12) + centurian_m + (centurian_m // 4) + century_anchor
			) % 7
			lowerCamelCase__ :      Dict								=		(
			    DOOMSDAY_NOT_LEAP[month - 1]
			    if (year % 4 != 0) or (centurian == 0 and (year % 400) == 0)
			    else DOOMSDAY_LEAP[month - 1]
			)
			lowerCamelCase__ :      str								=		(dooms_day + day - day_anchor) % 7
			return WEEK_DAY_NAMES[week_day]


if __name__ == "__main__":
				import doctest

				doctest.testmod()






from string import ascii_uppercase

_lowercase     							=						{char: i for i, char in enumerate(ascii_uppercase)}
_lowercase     							=						dict(enumerate(ascii_uppercase))






def      _A				(UpperCamelCase		:      str      ,			UpperCamelCase		:      str )  ->str:



			'''simple docstring'''







			lowerCamelCase__ :      List[str]								=		len(UpperCamelCase )
			lowerCamelCase__ :      int								=		0
			while True:
						if x == i:
									lowerCamelCase__ :      Union[str, Any]								=		0
						if len(UpperCamelCase ) == len(UpperCamelCase ):
									break
						key += key[i]
						i += 1
			return key






def      _A				(UpperCamelCase		:      str      ,			UpperCamelCase		:      str )  ->str:



			'''simple docstring'''







			lowerCamelCase__ :      int								=		""""""
			lowerCamelCase__ :      str								=		0
			for letter in message:
						if letter == " ":
									cipher_text += " "
						else:
									lowerCamelCase__ :      Optional[int]								=		(dicta[letter] - dicta[key_new[i]]) % 26
									i += 1
									cipher_text += dicta[x]
			return cipher_text






def      _A				(UpperCamelCase		:      str      ,			UpperCamelCase		:      str )  ->str:



			'''simple docstring'''







			lowerCamelCase__ :      Dict								=		""""""
			lowerCamelCase__ :      Tuple								=		0
			for letter in cipher_text:
						if letter == " ":
									or_txt += " "
						else:
									lowerCamelCase__ :      List[Any]								=		(dicta[letter] + dicta[key_new[i]] + 26) % 26
									i += 1
									or_txt += dicta[x]
			return or_txt






def      _A				()  ->None:



			'''simple docstring'''







			lowerCamelCase__ :      Union[str, Any]								=		"""THE GERMAN ATTACK"""
			lowerCamelCase__ :      Union[str, Any]								=		"""SECRET"""
			lowerCamelCase__ :      List[str]								=		generate_key(UpperCamelCase      ,			UpperCamelCase )
			lowerCamelCase__ :      List[Any]								=		cipher_text(UpperCamelCase      ,			UpperCamelCase )
			print(f"Encrypted Text = {s}" )
			print(f"Original Text = {original_text(UpperCamelCase      ,			UpperCamelCase )}" )


if __name__ == "__main__":
				import doctest

				doctest.testmod()
				main()



