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