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