Task: Program Execution
Input (English): 9947, 225, 341, 9161, 23, c, x, 6345, h, 3371
Output (English): 9947, 225, 341, 9161, 23, 3, 24, 6345, 8, 3371