Task: Program Execution
Input (English): 2975, b, n, y, X, y, 3851, 6449, E, o, 5243, 7917, G, z, x, R, 1841
Output (English): 2975, 3851, 6449, 5243, 7917, 1841