#include <bits/stdc++.h>
using namespace std;
long long x, y = 1, m = 1111;
int main() {
  string n;
  cin >> n;
  int c;
  cin >> c;
  string month[12] = {"January",   "February", "March",    "April",
                      "May",       "June",     "July",     "August",
                      "September", "October",  "November", "December"};
  int in = 0;
  for (int a = 0; a < 12; a++) {
    if (month[a] == n) in = a;
  }
  while (c != 0) {
    in++;
    in = in % 12;
    c--;
  }
  cout << month[in] << endl;
  return 0;
}
