#include <bits/stdc++.h>
using namespace std;
set<string> t;
int main() {
  vector<string> v;
  string t;
  int k;
  cin >> t >> k;
  v.push_back("January");
  v.push_back("February");
  v.push_back("March");
  v.push_back("April");
  v.push_back("May");
  v.push_back("June");
  v.push_back("July");
  v.push_back("August");
  v.push_back("September");
  v.push_back("October");
  v.push_back("November");
  v.push_back("December");
  int n;
  for (int i = 0; i < 12; i++)
    if (v[i] == t) n = i;
  cout << v[(n + k) % 12];
  return 0;
}
