int main() {
    int arabic[] = {1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1};

    
    
    
    char roman[13][3] = {, , , , , , , , , , , , };
    int N;

    printf();
    scanf(, &N);
    printf();

    for (int i = 0; i < 13; i++) {
        while (N >= arabic[i]) {
            printf(, roman[i]);
            N -= arabic[i];
        }
    }
    return 0;
}