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