#include <bits/stdc++.h>
using namespace std;
template <class T>
T sqr(T x) {
  return x * x;
}
int main() {
  char s[][100] = {"January",   "February", "March",    "April",
                   "May",       "June",     "July",     "August",
                   "September", "October",  "November", "December"};
  char c[100];
  int num;
  scanf("%s%d", c, &num);
  for (int i = 0; i < 12; i++) {
    string tmp1 = c, tmp2 = s[i];
    if (tmp1 == tmp2) {
      int ans = (i + num) % 12;
      printf("%s\n", s[ans]);
      break;
    }
  }
  return 0;
}
