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