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