import java.util.*; public class Main{ public static void main(String[] args){ int i, now=0, ans; Scanner sc = new Scanner(System.in); String[] time = {"XII","I","II","III","IIII","V","VI","VII","VIII","IX","X","XI"}; String line = sc.next(); for(i=0;i