#include <bits/stdc++.h>
using namespace std;
int conversion(string p) {
  int o;
  o = atoi(p.c_str());
  return o;
}
string toString(int h) {
  stringstream ss;
  ss << h;
  return ss.str();
}
long long gcd(long long a, long long b) { return (b == 0 ? a : gcd(b, a % b)); }
long long lcm(long long a, long long b) { return (a * (b / gcd(a, b))); }
long long toi(string p) {
  long long x;
  istringstream in(p);
  in >> x;
  return x;
}
string abc[12] = {"January",   "February", "March",    "April",
                  "May",       "June",     "July",     "August",
                  "September", "October",  "November", "December"};
map<string, int> M;
map<int, string> N;
void go() {
  for (int i = 0; i < 12; i++) {
    M[abc[i]] = i;
    N[i] = abc[i];
  }
}
int main() {
  string a;
  int k;
  go();
  while (cin >> a >> k) {
    cout << N[(k + M[a]) % 12] << endl;
  }
}
