#include using namespace std; int main(){ string time[] = {"I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"},s; int t; cin >> s >> t; for(int i = 0;i < 12;i++){ if(time[i] == s){ i += t; i %= 12; if(i < 0) i = 12 + i; cout << time[i] << endl; return 0; } } }