Task: Program Execution
Input (English): 7527, M, 4923, 5123, W, R, 7297
Output (English): 7527, 13, 4923, 5123, 23, 18, 7297