Task: Program Execution
Input (English): 6249, N, 9495, z, 9273, 9331, q
Output (English): 6249, 9495, 9273, 9331