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