#include <bits/stdc++.h>
using namespace std;
string s[12] = {"January",   "February", "March",    "April",
                "May",       "June",     "July",     "August",
                "September", "October",  "November", "December"};
int main() {
  string a;
  cin >> a;
  int r;
  for (r = 0; s[r] != a; r++) {
  }
  int t;
  cin >> t;
  cout << s[(t + r) % 12];
}
