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