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