

"""simple docstring"""





import os
import sys
from contextlib import contextmanager


# Windows only
if os.name == "nt":
   import ctypes
   import msvcrt  # noqa




   class 					_lowerCAmelCase  (	ctypes.Structure   ):







    """simple docstring"""







    __UpperCAmelCase	:					Union[str, Any]   		=	[("size", ctypes.c_int), ("visible", ctypes.c_byte)]




def   _A  (  )	->						int:
   '''simple docstring'''


   if os.name == "nt":
      __lowercase								=						CursorInfo()
      __lowercase								=						ctypes.windll.kernelaa.GetStdHandle(-11)
      ctypes.windll.kernelaa.GetConsoleCursorInfo(UpperCamelCase_,			ctypes.byref(UpperCamelCase_))
      __lowercase								=						False
      ctypes.windll.kernelaa.SetConsoleCursorInfo(UpperCamelCase_,			ctypes.byref(UpperCamelCase_))
   elif os.name == "posix":
      sys.stdout.write("\033[?25l")
      sys.stdout.flush()




def   _A  (  )	->						int:
   '''simple docstring'''


   if os.name == "nt":
      __lowercase								=						CursorInfo()
      __lowercase								=						ctypes.windll.kernelaa.GetStdHandle(-11)
      ctypes.windll.kernelaa.GetConsoleCursorInfo(UpperCamelCase_,			ctypes.byref(UpperCamelCase_))
      __lowercase								=						True
      ctypes.windll.kernelaa.SetConsoleCursorInfo(UpperCamelCase_,			ctypes.byref(UpperCamelCase_))
   elif os.name == "posix":
      sys.stdout.write("\033[?25h")
      sys.stdout.flush()




@contextmanager
def   _A  (  )	->						Optional[int]:
   '''simple docstring'''


   try:
      hide_cursor()
      yield
   finally:
      show_cursor()








"""simple docstring"""




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


if __name__ == "__main__":
				import doctest

				doctest.testmod()






