#include <bits/stdc++.h>
using namespace std;
int main() {
  map<string, int> m;
  m["January"] = 1;
  m["February"] = 2;
  m["March"] = 3;
  m["April"] = 4;
  m["May"] = 5;
  m["June"] = 6;
  m["July"] = 7;
  m["August"] = 8;
  m["September"] = 9;
  m["October"] = 10;
  m["November"] = 11;
  m["December"] = 12;
  string month;
  int k, n;
  cin >> month >> k;
  n = m[month];
  n += k;
  if (n % 12 != 0)
    n %= 12;
  else
    n = 12;
  map<string, int>::iterator it;
  string out;
  for (it = m.begin(); it != m.end(); it++) {
    if (it->second == n) out = it->first;
  }
  cout << out << endl;
  return 0;
}
