Task: Program Execution
Input (English): 7717, f, g, 401, m, 4655, h, 7489, X, L, 675, 231, 2811, 8587, u, 5897, 8643, j, 3977, p, 6885
Output (English): 7717, 401, 4655, 7489, 675, 231, 2811, 8587, 5897, 8643, 3977, 6885