#include <bits/stdc++.h>
using namespace std;
int main() {
  string arr[] = {"January",   "February", "March",    "April",
                  "May",       "June",     "July",     "August",
                  "September", "October",  "November", "December"};
  string s, z;
  cin >> s;
  int k, pos, i;
  cin >> k;
  for (i = 0; i < 12; i++) {
    if (arr[i] == s) pos = i;
  }
  int j;
  if (pos == 11)
    j = 0;
  else
    j = pos + 1;
  z = arr[pos];
  while (k--) {
    if (j == 11) {
      z = arr[j];
      j = 0;
    } else {
      z = arr[j];
      j++;
    }
  }
  cout << z << endl;
  return 0;
}
