#P6449. [COCI 2008/2009 #4] DATUM

[COCI 2008/2009 #4] DATUM

Description

Given a date in the year 20092009, determine which day of the week it is.

Input Format

The input contains only one line with two integers dd, mm, where mm denotes the month and dd denotes the day of the month.

Output Format

Output one line with a string representing the answer. The required output for each day of the week is as follows:

Day Output
Monday Monday
Tuesday Tuesday
Wednesday Wednesday
Thursday Thursday
Friday Friday
Saturday Saturday
Sunday Sunday
1 1

Thursday
17 1

Saturday

25 9

Friday

Hint

Constraints

For all testdata, the given date is guaranteed to be a real date in the year 20092009.

Hint

  • 11 January 20092009 is a Thursday.
  • Note that the input gives the day first, then the month.

Notes

This problem is translated from COCI2008-2009 CONTEST #4 T2 DATUM.

Translated by ChatGPT 5