#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  string s;
  cin >> s;
  if (s == "January") n = 1;
  if (s == "February") n = 2;
  if (s == "March") n = 3;
  if (s == "April") n = 4;
  if (s == "May") n = 5;
  if (s == "June") n = 6;
  if (s == "July") n = 7;
  if (s == "August") n = 8;
  if (s == "September") n = 9;
  if (s == "October") n = 10;
  if (s == "November") n = 11;
  if (s == "December") n = 12;
  cin >> m;
  int i = 1;
  while (i <= m) {
    n++;
    if (n == 13) n = 1;
    i++;
  }
  if (n == 1) cout << "January";
  if (n == 2) cout << "February";
  if (n == 3) cout << "March";
  if (n == 4) cout << "April";
  if (n == 5) cout << "May";
  if (n == 6) cout << "June";
  if (n == 7) cout << "July";
  if (n == 8) cout << "August";
  if (n == 9) cout << "September";
  if (n == 10) cout << "October";
  if (n == 11) cout << "November";
  if (n == 12) cout << "December";
}
