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