Wesley's Anger Contest 2 Problem 1 - OCT 31 = DEC 25?

View as PDF

Submit solution


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

Author:
Problem type

Halloween is coming up soon! Unfortunately you forgot what day of the week it is on. Thankfully, Carson has remembered the day of the week that Christmas is on, and knowing that OCT 31 = DEC 25, believes this information is more than enough to help you out.

Given the day of the week the Christmas is on, determine the day that Halloween is on.

Recall that Halloween is on October 31 and Christmas is on December 25 based on the Gregorian Calendar.

Input Specification

There will be a single line of input, the day of the week that Christmas is on for some unspecified year. Specifically, the input will be one of Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.

Output Specification

This problem is graded with an identical checker. This includes whitespace characters. Ensure that every line of output is terminated with a \n character and that there are no trailing spaces.

Output a single line, the day of the week that Halloween is on for the same year. Specifically, the output must be one of Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.

Sample Input

Saturday

Sample Output

Sunday

Comments


  • 0
    mdu  commented on Jan. 20, 2020, 9:23 p.m.

    i legit thought halloween was on the 30th for a few seconds