Task: Program Execution
Input (English): 1333, N, W, D, 7881, 6991, D, q, 6547, W, R, 4393, X, k, c, 2359, X, 6033, 9173, 9803, z, 4235
Output (English): 1333, 7881, 6991, 6547, 4393, 2359, 6033, 9173, 9803, 4235