#include <bits/stdc++.h>
using namespace std;
int main() {
  char* s[12] = {"January",   "February", "March",    "April",
                 "May",       "June",     "July",     "August",
                 "September", "October",  "November", "December"};
  char* s2 = new char[100];
  int n;
  cin >> s2;
  cin >> n;
  for (int i = 0; i < 12; i++)
    if (strcmp(s2, s[i]) == 0) {
      cout << s[(i + n) % 12];
      return 0;
    }
}
