Task: Program Execution
Input (English): 5401, 1423, F, 8311, R, 8291, 8991, 7171, 7881, 7223, 811, v, 9587, X
Output (English): 5401, 1423, 8311, 8291, 8991, 7171, 7881, 7223, 811, 9587