#include <bits/stdc++.h>
using namespace std;
const int INF = 2147483647;
const double PI = 3.141592653589793;
string m[12] = {"January",   "February", "March",    "April",
                "May",       "June",     "July",     "August",
                "September", "October",  "November", "December"};
string s;
int k, i;
int main() {
  cin >> s >> k;
  for (i = 0; i < 12; i++)
    if (m[i] == s) printf("%s\n", m[(i + k) % 12].c_str());
  return 0;
}
