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