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