Task: Program Execution
Input (English): Q, 3273, 1375, L, 3895
Output (English): 17, 3273, 1375, 12, 3895