Task: Program Execution
Input (English): 8123, k, 5393, 7785, N, 2641, 3249, A
Output (English): 8123, 5393, 7785, 2641, 3249