#include <bits/stdc++.h>
using namespace std;
int dx[8] = {-1, -1, -1, 0, 0, 1, 1, 1};
int dy[8] = {-1, 0, 1, -1, 1, -1, 0, 1};
const long long N = 200005;
const long long mod = 1000000007;
void file() {
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
}
void zuka() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  zuka();
  vector<string> m = {"January",   "February", "March",    "April",
                      "May",       "June",     "July",     "August",
                      "September", "October",  "November", "December"};
  string s;
  int k;
  cin >> s >> k;
  int start;
  for (int i = 1; i <= 12; i++) {
    if (m[i - 1] == s) {
      start = i - 1;
      break;
    }
  }
  cout << m[(start + k) % 12];
}
