Task: Program Execution
Input (English): 1639, Q, 4399, N, 4149, 7833, 9073
Output (English): 1639, 4399, 4149, 7833, 9073