Task: Program Execution
Input (English): 2839, 1109, R, w, S, 2729, e, 6525, 8067, 8067, 4647, X, 8667, 9625, 5871
Output (English): 2839, 1109, 2729, 6525, 8067, 8067, 4647, 8667, 9625, 5871