Problem list
Log in
#coci00092 · COCI 2008/2009 Contest 4

Datum

Bronze II 1.0 s 32 MB

Write a program that, given a date in 2009, determines the day of week on that date.

Input

The first line contains two positive integers $D$ and $M$ separated by a space. The numbers will be a valid date in 2009.

Output

Output the day of the week on D. M. 2009. The output should be one of the words "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" or "Sunday".

Example 1

Input
1 1
Output
Thursday

Example 2

Input
17 1
Output
Saturday

Example 3

Input
25 9
Output
Friday
Source
COCI 2008/2009 Contest 4
Appears in
Not part of a ladder, contest or set yet.
Accepted 1 Submissions 1 Acceptance 100% Solvers 1

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code