Task: Program Execution
Input (English): 5087, L, 1027, 2121, x, 3113, 6581, d, 1323, I, C, 1487
Output (English): 20739