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