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