UnVigil II: The Squeakquel

Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 256M

Problem type
Allowed languages
C, C++, Haskell, Java, Python

One of the few things we know with certainty is that the next Charity UnVigil will be held exactly \(n\) months in the future. You look at the calendar and notice the current month \(s\). How can you know what month the next Charity UnVigil will be held in?

All 13 months in the Calendar are named as January, February, March, April, May, June, July, August, September, Spooktober, November, December, January2.

Input Specification

Two lines. The first will contain the name of one of the known months with correct capitalization. The second line contains an integer \(0 \leq n \leq 1024\) - the number of months left until the next Charity UnVigil.

Output Specification

Print with correct capitalization the name of the month in which the next Charity UnVigil will be held.

Sample Input 1


Sample Output 1


Sample Input 2


Sample Output 2



There are no comments at the moment.