#include <bits/stdc++.h>
using namespace std;
void solve();
void test_case();
int grid[3][3];
void test_case() {
  int t;
  cin >> t;
  for (int i = 0; i < t; ++i) {
    solve();
  }
}
void load() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int index(string x, string s[]) {
  for (int i = 0; i < 12; ++i) {
    if (x == s[i]) {
      return i;
    }
  }
  return -1;
}
void solve() {
  string month[] = {"January",   "February", "March",    "April",
                    "May",       "June",     "July",     "August",
                    "September", "October",  "November", "December"};
  int n;
  string s;
  cin >> s >> n;
  n = n % 12;
  n = n + index(s, month);
  cout << month[n % 12] << endl;
}
int main() {
  load();
  solve();
  return 0;
}
