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