Task: Program Execution
Input (English): 4321, X, p, x, 5559, 5371, y, 6643, F, 3193, 3545, q, F
Output (English): 4321, 5559, 5371, 6643, 3193, 3545