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