#include <bits/stdc++.h>
using namespace std;
int k;
string s;
bool comp(int x) { return x <= 0; }
int mestoint(string s) {
  if (s[0] == 'J') {
    if (s[1] == 'a') return 1;
    if (s[2] == 'n') return 6;
    return 7;
  }
  if (s[0] == 'A') {
    if (s[1] == 'p') return 4;
    return 8;
  }
  if (s[0] == 'M') {
    if (s[2] == 'r') return 3;
    return 5;
  }
  if (s[0] == 'F') return 2;
  if (s[0] == 'S') return 9;
  if (s[0] == 'O') return 10;
  if (s[0] == 'N') return 11;
  return 12;
}
string inttomes(int t) {
  if (t == 1) return "January";
  if (t == 2) return "February";
  if (t == 3) return "March";
  if (t == 4) return "April";
  if (t == 5) return "May";
  if (t == 6) return "June";
  if (t == 7) return "July";
  if (t == 8) return "August";
  if (t == 9) return "September";
  if (t == 10) return "October";
  if (t == 11) return "November";
  return "December";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> s;
  cin >> k;
  int t = mestoint(s);
  t += k;
  t %= 12;
  if (!t) t = 12;
  cout << inttomes(t);
  return 0;
}
