#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 s;
  int k, i;
  cin >> s >> k;
  for (i = 0; i < 12; ++i)
    if (month[i] == s) break;
  cout << month[(i + k) % 12] << endl;
}
