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