Task: Program Execution
Input (English): 7865, 7521, K, 7509, 1119, x, N, q
Output (English): 7865, 7521, 7509, 1119