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