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