#include <bits/stdc++.h>
using namespace std;
int main() {
  string month[] = {"January",   "February", "March",    "April",
                    "May",       "June",     "July",     "August",
                    "September", "October",  "November", "December"};
  string t;
  cin >> t;
  int n;
  cin >> n;
  int h;
  for (int i = 0; i < 12; i++) {
    if (t == month[i]) {
      h = i;
      break;
    }
  }
  int g = (h + (n)) % 12;
  cout << month[g] << endl;
  return 0;
}
