#include <bits/stdc++.h>
using namespace std;
using LL = long long;
constexpr int N = 1e5 + 5;
vector<string> months{"January",   "February", "March",    "April",
                      "May",       "June",     "July",     "August",
                      "September", "October",  "November", "December"};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  string m;
  int k;
  cin >> m >> k;
  for (int i = 0; i < 12; i++) {
    if (months[i] == m) {
      cout << months[(i + k) % 12] << endl;
    }
  }
}
