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