#include <bits/stdc++.h>
using namespace std;
int isprime(long long int n) {
  long long int i;
  if (n == 2) return 1;
  if (n % 2 == 0) return 0;
  for (i = 3; i <= sqrt(n); i += 2)
    if (n % i == 0) return 0;
  return 1;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n, sum;
  string s, a[101];
  while (cin >> s >> n) {
    if (s == "January") sum = 1;
    if (s == "February") sum = 2;
    if (s == "March") sum = 3;
    if (s == "April") sum = 4;
    if (s == "May") sum = 5;
    if (s == "June") sum = 6;
    if (s == "July") sum = 7;
    if (s == "August") sum = 8;
    if (s == "September") sum = 9;
    if (s == "October") sum = 10;
    if (s == "November") sum = 11;
    if (s == "December") sum = 12;
    sum += n;
    if (sum % 12 == 0)
      sum = 12;
    else
      sum %= 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");
    cout << a[sum - 1] << endl;
  }
  return 0;
}
