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