Algorithm


A. Codecraft III
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

Today Vasya visited a widely known site and learned that the continuation of his favourite game Codecraft II will appear after exactly k months. He looked at the calendar and learned that at the moment is the month number s. Vasya immediately got interested in what month Codecraft III will appear. Help him understand that.

All the twelve months in Vasya's calendar are named using their usual English names: JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember.

Input

The first input line contains the name of the current month. It is guaranteed that it is a proper English name of one of twelve months. The first letter is uppercase, the rest are lowercase. The second line contains integer k (0 ≤ k ≤ 100) — the number of months left till the appearance of Codecraft III.

Output

Print starting from an uppercase letter the name of the month in which the continuation of Codeforces II will appear. The printed name must be contained in the list JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember.

Examples
input
Copy
November
3
output
Copy
February
input
Copy
May
24
output
Copy
May



 

Code Examples

#1 Code Example with C++ Programming

Code - C++ Programming

#include <iostream>
#include <string>

typedef long long ll;

using namespace std;

int main() {
	string months[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };

	string month;
	int n, m;
	cin >> month >> n;

	for(int i = 0; i < 12; ++i)
		if(months[i] == month) {
			m = i;
			break;
		}

	cout << months[(m + n) % 12] << endl;

	return 0;
}
Copy The Code & Try With Live Editor

Input

x
+
cmd
November
3

Output

x
+
cmd
February
Advertisements

Demonstration


Codeforcess Solution Codecraft III, A. Codecraft III C,C++, Java, Js and Python ,Codecraft III,A. Codecraft III,Codeforcess Solution

Previous
Codeforces solution 1080-B-B. Margarite and the best present codeforces solution
Next
CodeChef solution DETSCORE - Determine the Score CodeChef solution C,C+