#include <bits/stdc++.h>
using namespace std;
char b[9], s[9];
struct tm t;
int k, i;
string m(int i) {
  if (i == 8) return "September";
  t.tm_mon = i;
  strftime(b, 9, "%B", &t);
  return b;
}
int main() {
  cin >> s >> k;
  for (;; i++)
    if (m(i) == s) return cout << m((i + k) % 12), 0;
}
