#include <bits/stdc++.h>
using namespace std;
int main() {
  const string month[13] = {"Linsky",  "January",   "February", "March",
                            "April",   "May",       "June",     "July",
                            "August",  "September", "October",  "November",
                            "December"};
  string k;
  int n, st, en;
  cin >> k;
  cin >> n;
  for (int i = 1; i <= 12; i++)
    if (month[i] == k) st = i;
  en = st;
  while (n--) {
    en++;
    if (en > 12) en = 1;
  }
  cout << month[en] << endl;
  return 0;
}
