#include <bits/stdc++.h>
using namespace std;
unsigned long long GCD(unsigned long long x, unsigned long long y) {
  if (y == 0)
    return x;
  else
    return GCD(y, x % y);
}
unsigned long long LCM(unsigned long long a, unsigned long long b) {
  return (a * b / (GCD(a, b)));
}
bool PRIME(int p) {
  if (p <= 1) return false;
  if (p <= 3) return true;
  if (p % 2 == 0 || p % 3 == 0) return false;
  for (int i = 5; p >= i * i; i = i + 6) {
    if (p % i == 0 || p % (i + 2) == 0) return false;
  }
  return true;
}
int main() {
  long long a, b, c, d, e, t, i, j, k, sum = 0, ans = 0, x, y, z, m, n;
  string S, T, U;
  string Months[] = {"January",   "February", "March",    "April",
                     "May",       "June",     "July",     "August",
                     "September", "October",  "November", "December"};
  cin >> S >> a;
  for (i = 0; i <= 11; i++) {
    if (S == Months[i]) {
      j = i + 1;
      break;
    }
  }
  k = (j + a) % 12;
  if (k == 0) k = 12;
  cout << Months[k - 1] << endl;
  return 0;
}
