#include <bits/stdc++.h>
using namespace std;
map<string, int> Map;
string s[181], sn;
int n, i;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> sn;
  cin >> n;
  s[1] = "January";
  s[2] = "February";
  s[3] = "March";
  s[4] = "April";
  s[5] = "May";
  s[6] = "June";
  s[7] = "July";
  s[8] = "August";
  s[9] = "September";
  s[10] = "October";
  s[11] = "November";
  s[12] = "December";
  for (i = 13; i <= 24; i++) s[i] = s[i - 12];
  for (i = 1; i <= 12; i++) Map[s[i]] = i;
  cout << s[Map[sn] + n % 12] << '\n';
  return 0;
}
