Task: Program Execution
Input (English): 8147, y, 2605, 2395, 237, x, 4837, 2521, p, 5371, I, V
Output (English): 8147, 25, 2605, 2395, 237, 24, 4837, 2521, 16, 5371, 9, 22