


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






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


     """simple docstring"""


     assert len(str(_lowercase ) ) > 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:
     __UpperCamelCase =			year // 1_00
     __UpperCamelCase =			(5 * (century % 4) + 2) % 7
     __UpperCamelCase =			year % 1_00
     __UpperCamelCase =			centurian % 12
     __UpperCamelCase =			(
         (centurian // 12) + centurian_m + (centurian_m // 4) + century_anchor
     ) % 7
     __UpperCamelCase =			(
         DOOMSDAY_NOT_LEAP[month - 1]
         if (year % 4 != 0) or (centurian == 0 and (year % 4_00) == 0)
         else DOOMSDAY_LEAP[month - 1]
     )
     __UpperCamelCase =			(dooms_day + day - day_anchor) % 7
     return WEEK_DAY_NAMES[week_day]


if __name__ == "__main__":
    import doctest

    doctest.testmod()








def      lowerCamelCase_						(			UpperCamelCase__							: str					,	UpperCamelCase__							: int )	->			list:





				"""simple docstring"""


				__lowerCamelCase									=       word.split()

				def justify(UpperCamelCase__							: list					,	UpperCamelCase__							: int					,	UpperCamelCase__							: int ) -> str:
								__lowerCamelCase									=       max_width - width
								__lowerCamelCase									=       len(UpperCamelCase__ )
								if len(UpperCamelCase__ ) == 1:
												# if there is only word in line
												# just insert overall_spaces_count for the remainder of line
												return line[0] + " " * overall_spaces_count
								else:
												__lowerCamelCase									=       words_count - 1
												# num_spaces_between_words_list[i] : tells you to insert
												# num_spaces_between_words_list[i] spaces
												# after word on line[i]
												__lowerCamelCase									=       spaces_to_insert_between_words * [
												    overall_spaces_count // spaces_to_insert_between_words
												]
												__lowerCamelCase									=       (
												    overall_spaces_count % spaces_to_insert_between_words
												)
												# distribute spaces via round robin to the left words
												for i in range(UpperCamelCase__ ):
																num_spaces_between_words_list[i] += 1
												__lowerCamelCase									=       []
												for i in range(UpperCamelCase__ ):
																# add the word
																aligned_words_list.append(line[i] )
																# add the spaces to insert
																aligned_words_list.append(num_spaces_between_words_list[i] * ' ' )
												# just add the last word to the sentence
												aligned_words_list.append(line[-1] )
												# join the aligned words list to form a justified line
												return "".join(UpperCamelCase__ )

				__lowerCamelCase									=       []
				__lowerCamelCase									=       []
				__lowerCamelCase									=       0
				for word in words:
								if width + len(UpperCamelCase__ ) + len(UpperCamelCase__ ) <= max_width:
												# keep adding words until we can fill out max_width
												# width = sum of length of all words (without overall_spaces_count)
												# len(word) = length of current word
												# len(line) = number of overall_spaces_count to insert between words
												line.append(UpperCamelCase__ )
												width += len(UpperCamelCase__ )
								else:
												# justify the line and add it to result
												answer.append(justify(UpperCamelCase__					,	UpperCamelCase__					,	UpperCamelCase__ ) )
												# reset new line and new width
												__lowerCamelCase			,		__lowerCamelCase									=       [word], len(UpperCamelCase__ )
				__lowerCamelCase									=       max_width - width - len(UpperCamelCase__ )
				answer.append(' '.join(UpperCamelCase__ ) + (remaining_spaces + 1) * ' ' )
				return answer


if __name__ == "__main__":
					from doctest import testmod

					testmod()


