#include <bits/stdc++.h>
using namespace std;
bool Compare(const pair<int, int> &a, const pair<int, int> &b) {
  return a.first < b.first;
}
const int INF = 0x3f3f3f3f;
string tostring(long long int Number) {
  string String;
  ostringstream Convert;
  Convert << Number;
  String = Convert.str();
  return String;
}
long long int toint(string String) {
  stringstream Convert(String);
  long long int Number = 0;
  Convert >> Number;
  return Number;
}
int Lower_bound(vector<int> v, int k) {
  vector<int>::iterator low;
  low = lower_bound(v.begin(), v.end(), k);
  int lower;
  lower = (low - v.begin());
  return lower;
}
int Upper_bound(vector<int> v, int k) {
  vector<int>::iterator up;
  up = upper_bound(v.begin(), v.end(), k);
  int upper;
  upper = (up - v.begin()) - 1;
  return upper;
}
int voel(string second) {
  int l = second.size();
  int i;
  int ct = 0;
  for (i = 0; i < l; i++) {
    if (islower(second[i])) {
      if (second[i] == 'a' || second[i] == 'e' || second[i] == 'i' ||
          second[i] == 'o' || second[i] == 'u') {
        ct++;
      }
    }
  }
  return ct;
}
bool vck(char ch) {
  if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u')
    return true;
}
char pr[33] = {'!', '"',  '#', '$', '%', '&', '\'', '(', ')', '*', '+',
               ',', '-',  '.', '/', ':', ';', '<',  '=', '>', '?', '@',
               '[', '\\', ']', '^', '_', '`', '{',  '|', '}', '~', ' '};
bool pck(char ch) {
  for (int i = 0; i < 33; i++) {
    if (ch == pr[i]) return true;
  }
}
int consonant(string second) {
  int l = second.size();
  int i;
  int ct = 0;
  for (i = 0; i < l; i++) {
    if (vck(second[i]) == false && pck(second[i]) == false &&
        islower(second[i]))
      ct++;
  }
  return ct;
}
long long int closestNumber(long long int n, long long int m) {
  long long int q = n / m;
  long long int n1 = m * q;
  long long int n2 = (n * m) > 0 ? (m * (q + 1)) : (m * (q - 1));
  if (abs(n - n1) < abs(n - n2)) return n1;
  return n2;
}
long long int bigmod(long long int b, long long int p, long long int m) {
  long long int x;
  if (p == 0) return 1 % m;
  x = bigmod(b, p / 2, m);
  x = (x * x) % m;
  if (p % 2 == 0)
    x = x;
  else
    x = (x * b) % m;
  return x;
}
bool status[100000005];
vector<long long int> Prime;
void sieve() {
  long long int i, j, N;
  N = 1000000 - 1;
  long long int sq = sqrt(N);
  for (i = 4; i <= N; i += 2) status[i] = 1;
  for (i = 3; i <= sq; i += 2) {
    if (status[i] == 0) {
      for (j = i * i; j <= N; j += i) status[j] = 1;
    }
  }
  status[1] = 1;
  for (i = 1; i <= N; i++) {
    if (status[i] == 0) Prime.push_back(i);
  }
}
long long int ReverseI(long long int n) {
  long long int x = 0;
  while (n != 0) {
    x = x * 10 + n % 10;
    n = n / 10;
  }
  return x;
}
int main() {
  ios_base::sync_with_stdio(false);
  map<string, int> make_pair;
  make_pair["January"] = 1;
  make_pair["February"] = 2;
  make_pair["March"] = 3;
  make_pair["April"] = 4;
  make_pair["May"] = 5;
  make_pair["June"] = 6;
  make_pair["July"] = 7;
  make_pair["August"] = 8;
  make_pair["September"] = 9;
  make_pair["October"] = 10;
  make_pair["November"] = 11;
  make_pair["December"] = 12;
  map<int, string> mp1;
  mp1[1] = "January";
  mp1[2] = "February";
  mp1[3] = "March";
  mp1[4] = "April";
  mp1[5] = "May";
  mp1[6] = "June";
  mp1[7] = "July";
  mp1[8] = "August";
  mp1[9] = "September";
  mp1[10] = "October";
  mp1[11] = "November";
  mp1[12] = "December";
  string second;
  int n;
  cin >> second >> n;
  int x = (make_pair[second] + n) % 12;
  if (x == 0) x = 12;
  cout << mp1[x] << endl;
  return 0;
}
