#include #include #include #include using namespace std; int main() { map m={{"I",1},{"II",2},{"III",3},{"IIII",4},{"V",5},{"VI",6},{"VII",7},{"VIII",8},{"IX",9},{"X",10},{"XI",11},{"XII",12}}; map mm={{1,"I"},{2,"II"},{3,"III"},{4,"IIII"},{5,"V"},{6,"VI"},{7,"VII"},{8,"VIII"},{9,"IX"},{10,"X"},{11,"XI"},{12,"XII"}}; string s; cin>>s; int k,l; cin>>k; l=(m[s]+k)%12; if(l>=0){ cout<