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