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