Task: Program Execution
Input (English): 6217, z, P, 2123, i, 5849, 4269, 6557, g, 8885, I, D, L, Z, 2901, t, J, A, R, f, W, D, 5951
Output (English): 6217, 2123, 5849, 4269, 6557, 8885, 2901, 5951