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