#include <bits/stdc++.h>
using namespace std;
char mm[13][20] = {"January",   "February", "March",    "April",
                   "May",       "June",     "July",     "August",
                   "September", "October",  "November", "December"};
int main() {
  char in[20];
  int d;
  scanf("%s%d", in, &d);
  int s;
  for (int i = 0; i < 12; i++) {
    if (strcmp(mm[i], in) == 0) {
      s = i;
      break;
    }
  }
  s += d;
  s %= 12;
  printf("%s\n", mm[s]);
  return 0;
}
