Task: Program Execution
Input (English): 6299, 3465, a, 3461, N, K, W, 163, 9445, N, 8741, Q, S, 4825, g
Output (English): 6299, 3465, 3461, 163, 9445, 8741, 4825