COCI '08 Contest 4 #2 Datum

View as PDF

Submit solution


Points: 3
Time limit: 1.0s
Memory limit: 32M

Problem type

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

Input Specification

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

Output Specification

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.

Sample Input 1

1 1

Sample Output 1

Thursday

Sample Input 2

17 1

Sample Output 2

Saturday

Sample Input 3

25 9

Sample Output 3

Friday

Comments

There are no comments at the moment.