#include <bits/stdc++.h>
using namespace std;
long long fx[4] = {1, -1, 0, 0};
long long fy[4] = {0, 0, 1, -1};
bool rs(long long a, long long b) { return (a > b); }
int main() {
  string s;
  long long n, k, sum;
  map<long long, string> m;
  map<long long, string>::iterator it;
  m.insert(make_pair(1, "January"));
  m.insert(make_pair(2, "February"));
  m.insert(make_pair(3, "March"));
  m.insert(make_pair(4, "April"));
  m.insert(make_pair(5, "May"));
  m.insert(make_pair(6, "June"));
  m.insert(make_pair(7, "July"));
  m.insert(make_pair(8, "August"));
  m.insert(make_pair(9, "September"));
  m.insert(make_pair(10, "October"));
  m.insert(make_pair(11, "November"));
  m.insert(make_pair(12, "December"));
  cin >> s >> n;
  for (it = m.begin(); it != m.end(); it++) {
    if (s == it->second) {
      sum = n + it->first;
    }
  }
  k = sum % 12;
  if (k == 0) {
    cout << m[12] << endl;
  } else
    cout << m[k] << endl;
  return 0;
}
