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