#include <bits/stdc++.h>
using namespace std;
long long a[1000010], t, i, n;
void pans(int ans) {
  if (ans == 1)
    cout << "January" << endl;
  else if (ans == 2)
    cout << "February" << endl;
  else if (ans == 3)
    cout << "March" << endl;
  else if (ans == 4)
    cout << "April" << endl;
  else if (ans == 5)
    cout << "May" << endl;
  else if (ans == 6)
    cout << "June" << endl;
  else if (ans == 7)
    cout << "July" << endl;
  else if (ans == 8)
    cout << "August" << endl;
  else if (ans == 9)
    cout << "September" << endl;
  else if (ans == 10)
    cout << "October" << endl;
  else if (ans == 11)
    cout << "November" << endl;
  else if (ans == 12)
    cout << "December" << endl;
}
int check(string s) {
  if (!s.compare("January"))
    return 1;
  else if (!s.compare("February"))
    return 2;
  else if (!s.compare("March"))
    return 3;
  else if (!s.compare("April"))
    return 4;
  else if (!s.compare("May"))
    return 5;
  else if (!s.compare("June"))
    return 6;
  else if (!s.compare("July"))
    return 7;
  else if (!s.compare("August"))
    return 8;
  else if (!s.compare("September"))
    return 9;
  else if (!s.compare("October"))
    return 10;
  else if (!s.compare("November"))
    return 11;
  else if (!s.compare("December"))
    return 12;
}
int main() {
  int ans, a;
  string s;
  cin >> s;
  cin >> a;
  ans = check(s);
  ans += a;
  while (ans > 12) ans -= 12;
  pans(ans);
}
