Task: Program Execution
Input (English): 9705, 9823, 8949, q, v, a, 8145
Output (English): 9705, 9823, 8949, 17, 22, 1, 8145