#include <bits/stdc++.h>
using namespace std;
void input(vector<int>& v, int n) {
  int i, io;
  for (i = 0; i < n; i++) {
    cin >> io;
    v.push_back(io);
  }
}
void output(vector<int> v) {
  int i;
  for (i = 0; i < v.size(); i++) cout << v.at(i) << " ";
}
map<char, int> frequency(string v) {
  int i;
  map<char, int> m;
  for (i = 0; i < v.length(); i++) {
    if (m.find(v[i]) == m.end())
      m.insert({v.at(i), 1});
    else
      m[v.at(i)]++;
  }
  return m;
}
bool perfsq(long long n) { return (ceil(sqrt(n)) == floor(sqrt(n))); }
bool ispower2(int n) {
  if (n & (n - 1) == 0)
    return true;
  else
    return false;
}
bool binary_pred(int a, int b) { return a == b; }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string str;
  cin >> str;
  int i, x, k;
  cin >> k;
  vector<string> v;
  v = {"January", "February", "March",     "April",   "May",      "June",
       "July",    "August",   "September", "October", "November", "December"};
  for (i = 0; i < 12; i++) {
    if (v[i] == str) {
      x = i + 1;
      break;
    }
  }
  int y = k % 12;
  cout << v[((x - 1) + y) % 12] << endl;
}
