#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 5, INF = 1e9 + 7;
string t[12] = {"January",   "February", "March",    "April",
                "May",       "June",     "July",     "August",
                "September", "October",  "November", "December"};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  int c, k;
  cin >> s;
  cin >> k;
  k %= 12;
  for (int i = 0; i < 12; ++i) {
    if (s == t[i]) c = i + 1;
  }
  if (c + k > 12)
    k -= (12 - c), cout << t[k - 1];
  else
    cout << t[c + k - 1], 0;
}
