#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  string s[1];
  cin >> s[0];
  int n, b;
  cin >> n;
  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";
  for (int i = 0; i < 12; i++) {
    if (s[0] == a[i]) {
      b = i;
    }
  }
  int c = (b + n) % 12;
  cout << a[c] << '\n';
  return 0;
}
