#include <bits/stdc++.h>
using namespace std;
char a[12];
int main() {
  cin >> a;
  int s, t;
  cin >> s;
  if (a[0] == 'J' && a[1] == 'a') t = 0;
  if (a[0] == 'F' && a[1] == 'e') t = 1;
  if (a[0] == 'M' && a[1] == 'a') t = 2;
  if (a[0] == 'A' && a[1] == 'p') t = 3;
  if (a[0] == 'M' && a[2] == 'y') t = 4;
  if (a[0] == 'J' && a[1] == 'u') t = 5;
  if (a[0] == 'J' && a[2] == 'l') t = 6;
  if (a[0] == 'A' && a[1] == 'u') t = 7;
  if (a[0] == 'S' && a[1] == 'e') t = 8;
  if (a[0] == 'O' && a[1] == 'c') t = 9;
  if (a[0] == 'N' && a[1] == 'o') t = 10;
  if (a[0] == 'D' && a[1] == 'e') t = 11;
  t = t + s;
  t = t % 12;
  if (t == 0) cout << "January";
  if (t == 1) cout << "February";
  if (t == 2) cout << "March";
  if (t == 3) cout << "April";
  if (t == 4) cout << "May";
  if (t == 5) cout << "June";
  if (t == 6) cout << "July";
  if (t == 7) cout << "August";
  if (t == 8) cout << "September";
  if (t == 9) cout << "October";
  if (t == 10) cout << "November";
  if (t == 11) cout << "December";
  return 0;
}
