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