COCI 2008/2009, Contest #4

Task DATUM

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".

Input

1 1

Output

Thursday

Input

17 1

Output

Saturday

Input

25 9

Output

Friday

All Submissions
Best Solutions


Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Jan 19, 2009

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

Comments (Search)

DO any of you know the problem with my program?
Where should i put my c:=c+7?