#include <bits/stdc++.h>
using namespace std;
string S[12] = {"January",   "February", "March",    "April",
                "May",       "June",     "July",     "August",
                "September", " October", "November", "December"};
map<string, int> A;
int main() {
  for (int i = 0; i < 12; i++) A[S[i]] = i + 1;
  string s;
  int k;
  cin >> s;
  cin >> k;
  int ans;
  ans = (A[s] + k) % 12;
  if (ans == 0) ans = 12;
  cout << S[ans - 1] << endl;
}
