Task: Program Execution
Input (English): 5463, 7171, G, R, P, 6819, 7783, A, 7013, 9491, E, 2543, G, 9447, F
Output (English): 5463, 7171, 6819, 7783, 7013, 9491, 2543, 9447