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