Task: Program Execution
Input (English): 2661, 3759, X, 6351, 3685, d, 9679, 5945, D, 915, 1873, 2033, 3127, W, 9997, 9639, 3731, p, f, 9299, 3525, 4083, 8691, M
Output (English): 2661, 3759, 6351, 3685, 9679, 5945, 915, 1873, 2033, 3127, 9997, 9639, 3731, 9299, 3525, 4083, 8691