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