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