Task: Program Execution
Input (English): Q, C, 6837, 8233, i, J, 9779, V, 6721, 8231
Output (English): 5