#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  int n;
  cin >> n;
  if (s == "January")
    n += 1;
  else if (s == "February")
    n += 2;
  else if (s == "March")
    n += 3;
  else if (s == "April")
    n += 4;
  else if (s == "May")
    n += 5;
  else if (s == "June")
    n += 6;
  else if (s == "July")
    n += 7;
  else if (s == "August")
    n += 8;
  else if (s == "September")
    n += 9;
  else if (s == "October")
    n += 10;
  else if (s == "November")
    n += 11;
  else
    n += 12;
  switch (n % 12) {
    case 1:
      cout << "January";
      break;
    case 2:
      cout << "February";
      break;
    case 3:
      cout << "March";
      break;
    case 4:
      cout << "April";
      break;
    case 5:
      cout << "May";
      break;
    case 6:
      cout << "June";
      break;
    case 7:
      cout << "July";
      break;
    case 8:
      cout << "August";
      break;
    case 9:
      cout << "September";
      break;
    case 10:
      cout << "October";
      break;
    case 11:
      cout << "November";
      break;
    case 0:
      cout << "December";
      break;
  }
  return 0;
}
