#include <bits/stdc++.h>
using namespace std;
int main() {
  enum month {
    January,
    February,
    March,
    April,
    May,
    June,
    July,
    August,
    September,
    October,
    November,
    December
  };
  string current_month;
  map<int, string> Status = {
      {January, "January"}, {February, "February"}, {March, "March"},
      {April, "April"},     {May, "May"},           {June, "June"},
      {July, "July"},       {August, "August"},     {September, "September"},
      {October, "October"}, {November, "November"}, {December, "December"}};
  int n;
  int number;
  cin >> current_month;
  cin >> n;
  for (auto it = Status.begin(); it != Status.end(); ++it) {
    if (it->second == current_month) {
      number = it->first;
      break;
    }
  }
  if (n > 12)
    number = number + (n % 12);
  else
    number = number + n;
  if (number >= 12) {
    number = number - 12;
  }
  cout << Status[number] << endl;
  return 0;
}
