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