#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;
  map<int, string> m1;
  m1[1] = "January";
  m1[2] = "February";
  m1[3] = "March";
  m1[4] = "April";
  m1[5] = "May";
  m1[6] = "June";
  m1[7] = "July";
  m1[8] = "August";
  m1[9] = "September";
  m1[10] = "October";
  m1[11] = "November";
  m1[12] = "December";
  string s;
  int n;
  cin >> s;
  cin.ignore();
  cin >> n;
  if (n >= 12) n %= 12;
  int temp = (m[s] + n);
  if (temp <= 12)
    cout << m1[temp] << endl;
  else {
    temp = (m[s] + n) % 12;
    cout << m1[temp] << endl;
  }
}
