#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int n, nn;
  cin >> s >> n;
  string o[12] = {"January",   "February", "March",    "April",
                  "May",       "June",     "July",     "August",
                  "September", "October",  "November", "December"};
  for (int i = 0; i != 12; ++i)
    if (o[i] == s) nn = i;
  while (n + nn > 11) nn -= 12;
  cout << o[n + nn];
}
