import java.io.IOException; import java.io.InputStream; import java.util.ArrayDeque; import java.util.NoSuchElementException; public class Main { private static FastScanner sc = new FastScanner(); public static void main(String[] args) { int N = sc.nextInt(); int value = 0; for(int i=0; i= 4000) { System.out.println("ERROR"); return; } intToRoman(value); } static int romanToInt(char[] R) { ArrayDeque chr = new ArrayDeque<>(); for(int i=0; i= 5) { System.out.print("D"); d3 -= 5; } for(int i=0; i= 5) { System.out.print("L"); d2 -= 5; } for(int i=0; i= 5) { System.out.print("V"); d1 -= 5; } for(int i=0; i