public class Main { public static void main(String[] args){ new Main().run(); } private void run(){ String[] clock = {"I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"}; String[] strs = new java.util.Scanner(System.in).nextLine().split(" "); System.out.println(clock[Integer.parseInt(strs[1])<0?clock.length+(search(clock,strs[0])+Integer.parseInt(strs[1]))%clock.length:(search(clock,strs[0])+Integer.parseInt(strs[1]))%clock.length]); } private int search(String[] clock,String target){ for(int i=0;i