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