#P6449. Determine the Day of the Week in 2009

    ID: 19663 Type: Default 1000ms 256MiB

Determine the Day of the Week in 2009

Determine the Day of the Week in 2009

You are given a date in the year 2009. Your task is to determine which day of the week that date falls on.

Note: January 1, 2009 was a Thursday.

You should output one of the following: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.

inputFormat

The input consists of two integers separated by a space: the month and the day of the date in 2009.

For example, for January 1, 2009, the input will be: 1 1.

outputFormat

Output the day of the week corresponding to the given date. The output should be one of: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.

sample

1 1
Thursday