#include <bits/stdc++.h>
using namespace std;
string s[24] = {"LiangJiaJun", "January",  "February", "March",  "April",
                "May",         "June",     "July",     "August", "September",
                "October",     "November", "December"};
int k, now;
string S;
int main() {
  cin >> S;
  cin >> k;
  int sit;
  for (int i = 1; i <= 12; i++)
    if (S == s[i]) {
      sit = i;
      break;
    }
  while (k > 0) {
    ++sit;
    --k;
    if (sit == 12 + 1) sit = 1;
  }
  cout << s[sit] << endl;
  return 0;
}
