Task: Program Execution
Input (English): n, a, 4005, X, Q, 5641, 8551, q, f, n, Y, T, U, 4257, 2927
Output (English): 4005, 5641, 8551, 4257, 2927