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