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