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