Task: Program Execution
Input (English): 6945, q, V, 4773, 8795, 8133, J, 7919, p, v, A, 2435
Output (English): 6945, 4773, 8795, 8133, 7919, 2435