Task: Program Execution
Input (English): V, Q, 9487, g, 3375, v, 5879, q, 5291
Output (English): 1, 2, 4, 6, 8