#include <bits/stdc++.h>
using namespace std;
int main() {
  char meses[13][20], mesA[20];
  int val;
  strcpy(meses[0], "January");
  strcpy(meses[1], "February");
  strcpy(meses[2], "March");
  strcpy(meses[3], "April");
  strcpy(meses[4], "May");
  strcpy(meses[5], "June");
  strcpy(meses[6], "July");
  strcpy(meses[7], "August");
  strcpy(meses[8], "September");
  strcpy(meses[9], "October");
  strcpy(meses[10], "November");
  strcpy(meses[11], "December");
  scanf("%s %d", mesA, &val);
  for (int i = 0; i < 12; i++) {
    if (strcmp(mesA, meses[i]) == 0) val += i;
  }
  printf("%s\n", meses[val % 12]);
  return 0;
}
