#include <bits/stdc++.h>
using namespace std;
string months[] = {"January",   "February", "March",    "April",
                   "May",       "June",     "July",     "August",
                   "September", "October",  "November", "December"};
int main() {
  string x;
  int k;
  cin >> x >> k;
  int curr = 0;
  for (curr = 0; months[curr] != x; curr++)
    ;
  curr = (curr + k) % 12;
  cout << months[curr];
}
