#include <bits/stdc++.h>
using namespace std;
int main() {
  string a[12];
  a[0] = "January";
  a[1] = "February";
  a[2] = "March";
  a[3] = "April";
  a[4] = "May";
  a[5] = "June";
  a[6] = "July";
  a[7] = "August";
  a[8] = "September";
  a[9] = "October";
  a[10] = "November";
  a[11] = "December";
  string b;
  cin >> b;
  int x;
  cin >> x;
  for (int i = 0; i < 12; i++) {
    if (a[i] == b) {
      cout << a[(i + (x % 12)) % 12];
      break;
    }
  }
  return 0;
}
