#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  unordered_map<int, string> m;
  m[1] = "January";
  m[2] = "February";
  m[3] = "March";
  m[4] = "April";
  m[5] = "May";
  m[6] = "June";
  m[7] = "July";
  m[8] = "August";
  m[9] = "September";
  m[10] = "October";
  m[11] = "November";
  m[12] = "December";
  int n;
  cin >> n;
  if (s == "January") {
    n++;
  }
  if (s == "February") {
    n += 2;
  }
  if (s == "March") {
    n += 3;
  }
  if (s == "April") {
    n += 4;
  }
  if (s == "May") {
    n += 5;
  }
  if (s == "June") {
    n += 6;
  }
  if (s == "July") {
    n += 7;
  }
  if (s == "August") {
    n += 8;
  }
  if (s == "September") {
    n += 9;
  }
  if (s == "October") {
    n += 10;
  }
  if (s == "November") {
    n += 11;
  }
  if (s == "December") {
    n += 12;
  }
  int j = n % 12;
  if (j == 0) {
    j = 12;
  }
  cout << m[j] << endl;
}
