



def 	UpperCAmelCase__      (      UpperCAmelCase__ :str					):






 '''simple docstring'''

 if not all(char in "01" for char in bin_string					):
  raise ValueError("Non-binary value was passed to the function"					)
 if not bin_string:
  raise ValueError("Empty string was passed to the function"					)
 a						=		""
 while len(UpperCAmelCase__					) % 3 != 0:
  a						=		"0" + bin_string
 a						=		[
     bin_string[index : index + 3]
     for index in range(len(UpperCAmelCase__					)					)
     if index % 3 == 0
 ]
 for bin_group in bin_string_in_3_list:
  a						=		0
  for index, val in enumerate(UpperCAmelCase__					):
   oct_val += int(2 ** (2 - index) * int(UpperCAmelCase__					)					)
  oct_string += str(UpperCAmelCase__					)
 return oct_string


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

     testmod()






A_		:     Any        =     [4, 1, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
A_		:     Tuple        =     [3, 7, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
A_		:     Optional[int]        =     {
    0: '''Sunday''',
    1: '''Monday''',
    2: '''Tuesday''',
    3: '''Wednesday''',
    4: '''Thursday''',
    5: '''Friday''',
    6: '''Saturday''',
}


def 	UpperCAmelCase__      (      UpperCAmelCase__ :int ,					UpperCAmelCase__ :int ,					UpperCAmelCase__ :int					):






 '''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:
 a						=		year // 1_00
 a						=		(5 * (century % 4) + 2) % 7
 a						=		year % 1_00
 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 % 4_00) == 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()

