Task: Program Execution
Input (English): 9547, E, q, 4295, 8307, N, 4003, Q
Output (English): 9547, 5, 17, 4295, 8307, 14, 4003, 17