Task: Program Execution
Input (English): x, f, 6351, 6297, 1341, n, 8403, q, 1449, q
Output (English): f, n, q, x