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