


'''simple docstring'''






__A :  Optional[Any]    							=				[4, 1, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
__A :  List[str]    							=				[3, 7, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
__A :  List[Any]    							=				{
    0: "Sunday",
    1: "Monday",
    2: "Tuesday",
    3: "Wednesday",
    4: "Thursday",
    5: "Friday",
    6: "Saturday",
}







def     UpperCamelCase_      (   A__ :       int							,   A__ :       int							,   A__ :       int ):
  '''simple docstring'''





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


if __name__ == "__main__":
  import doctest

  doctest.testmod()







'''simple docstring'''






import requests







def     UpperCamelCase_      (   A__ :       str							,   A__ :       str ):
  '''simple docstring'''





  lowerCAmelCase_      :				Optional[Any]      =       {"""Content-Type""": """application/json"""}
  lowerCAmelCase_      :				Union[str, Any]      =       requests.post(A__							,   json={"""text""": message_body}							,   headers=A__ )
  if response.status_code != 2_00:
    lowerCAmelCase_      :				Dict      =       (
        """Request to slack returned an error """
        f'{response.status_code}, the response is:\n{response.text}'
    )
    raise ValueError(A__ )


if __name__ == "__main__":
  # Set the slack url to the one provided by Slack when you create the webhook at
  # https://my.slack.com/services/new/incoming-webhook/
  send_slack_message("<YOUR MESSAGE BODY>", "<SLACK CHANNEL URL>")



