#include <bits/stdc++.h>
using namespace std;
int main() {
  string arr[] = {"January",   "February", "March",    "April",
                  "May",       "June",     "July",     "August",
                  "September", "October",  "November", "December"};
  map<string, int> mymap;
  for (int i = 0; i < 12; i++) {
    mymap[arr[i]] = i;
  }
  string a;
  int b;
  cin >> a >> b;
  cout << arr[(mymap[a] + b) % 12] << endl;
  return 0;
}
