#include <bits/stdc++.h>
using namespace std;
string ans, a[12] = {"January",   "February", "March",    "April",
                     "May",       "June",     "July",     "August",
                     "September", "October",  "November", "December"};
long long k, sum;
int main() {
  cin >> ans;
  cin >> k;
  for (long long i = 0; i <= 11; i++) {
    if (ans == a[i]) {
      sum = i;
      break;
    }
  }
  cout << a[(sum + k) % 12];
  return 0;
}
