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