Task: Program Execution
Input (English): 3113, Q, 3295, i, 3581, 2183, i, 5893, D, H
Output (English): 3113, 17, 3295, 9, 3581, 2183, 9, 5893, 4, 8