#include <bits/stdc++.h>
int main() {
  char month[12][20] = {"December", "January",   "February", "March",
                        "April",    "May",       "June",     "July",
                        "August",   "September", "October",  "November"};
  char s[20];
  int k, a, t, i;
  gets(s);
  scanf("%d", &k);
  for (i = 0; i < 12; i++) {
    if (strcmp(s, month[i]) == 0) {
      break;
    }
  }
  t = (i + k) % 12;
  puts(month[t]);
  return (0);
}
