#include <bits/stdc++.h>
using namespace std;
struct two {
  string a;
  int b;
};
bool cmp(two a, two b) { return a.a < b.a; }
bool strcmpo(string a, string b) {
  if (a.length() != b.length()) return false;
  int n = a.length(), i = 0;
  while (i < n) {
    if (a[i] != b[i]) return false;
    i++;
  }
  return true;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, i = 0, j = 0;
  string s[13], a;
  s[1] = "January";
  s[2] = "February";
  s[3] = "March";
  s[4] = "April";
  s[5] = "May";
  s[6] = "June";
  s[7] = "July";
  s[8] = "August";
  s[9] = "September";
  s[10] = "October";
  s[11] = "November";
  s[12] = "December";
  cin >> a;
  cin >> n;
  for (i = 1; i < 13; i++) {
    if (strcmpo(a, s[i])) break;
  }
  n = (i + n) % 12;
  if (n == 0) n = 12;
  cout << s[n];
}
