#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  string s;
  cin >> s;
  int k;
  cin >> k;
  string st[12] = {"January",   "February", "March",    "April",
                   "May",       "June",     "July",     "August",
                   "September", "October",  "November", "December"};
  for (int i = 0; i < 12; i++) {
    if (s == st[i]) k = k + i;
  }
  cout << st[k % 12] << "\n";
  return 0;
}
