Task: Program Execution
Input (English): F, 7687, 7589, 5169, M, 2667, 8543, 6235, g, 8195, 733, d, G, 4533, J, 4319, F
Output (English): 7687, 7589, 5169, 2667, 8543, 6235, 8195, 733, 4533, 4319