Task: Program Execution
Input (English): 5071, I, r, m, 9873, 755, 2811, X, d, M, V, 4103, 6055, 7073, 3523, E, e, P, 1375, 4637, X, 2071, e
Output (English): 5071, 9, 18, 13, 9873, 755, 2811, 24, 4, 13, 22, 4103, 6055, 7073, 3523, 5, 5, 16, 1375, 4637, 24, 2071, 5