Task: Program Execution
Input (English): 6085, X, F, 2661, 9969, 3409, R, K, 3855, 9085, n, 2439, 7729, 2771, 8567, F, g, z, 8059, 5321, x, G, y, 8211
Output (English): 6085, 2661, 9969, 3409, 3855, 9085, 2439, 7729, 2771, 8567, 8059, 5321, 8211