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

View as PDF

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

Author:
Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

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