Task: Program Execution
Input (English): 2707, 2297, 1299, 1957, x, r, M, T, 9575, 3867, c, 403, 1755
Output (English): 23860