跳到主要内容
图灵 OJTURING / ONLINE JUDGE

#F1935. Codecraft III

    ID: 1941 传统题 2000ms 256MiB 尝试: 0 已通过: 0 难度: 1 上传者: 标签>模拟编程与模拟入门难度共享题库Codeforces英文题面题目来源题面语言

Codecraft III

题目描述

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: January, February, March, April, May, June, July, August, September, October, November, December.

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 January, February, March, April, May, June, July, August, September, October, November, December.

Examples
Input
November
3
Output
February
Input
May
24
Output
May

题目来源:fps-www.educg.net-codeforce-1-2833.xml.zip;FPS 共享题包,题包内第 1515 题。保留原作者与原赛事署名。