#include <bits/stdc++.h>
using namespace std;
int main() {
  string M[] = {"January",   "February", "March",    "April",
                "May",       "June",     "July",     "August",
                "September", "October",  "November", "December"};
  int i, now, b, c, d;
  string a;
  cin >> a;
  for (i = 0; i < 12; i++) {
    if (M[i] == a) now = i;
  }
  cin >> b;
  int ans;
  ans = (b + now) % 12;
  cout << M[ans];
}
