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