#include <bits/stdc++.h>
char m[][12] = {"January",   "February", "March",    "April",
                "May",       "June",     "July",     "August",
                "September", "October",  "November", "December"};
int main() {
  char ss[100];
  int n;
  scanf("%s%d", ss, &n);
  for (int i = 0; i < 12; ++i)
    if (!strcmp(ss, m[i])) n += i;
  printf("%s", m[n % 12]);
  return 0;
}
