import java.util.*; class test{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S1 = sc.next(); int def = 0; int sum = 0; int T = sc.nextInt(); String roma[] = {"I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII"}; for(int i=0; i 12){ def -= 12; } while(def <= -12){ def += 12; } while(T > 12){ T -= 12; } while(T <= -12){ T += 12; } sum = def + T; while(sum > 12){ sum -= 12; } while(sum <= 0){ sum += 12; } for(int i=0; i