Task: Program Execution
Input (English): Y, 5823, k, 2871, y, Q, 9347, G, 8683, Q, 8647, n, X, a, 3223, 3989, 5895, b, 205, U, 5449, p, b, 5651
Output (English): 5823, 2871, 9347, 8683, 8647, 3223, 3989, 5895, 205, 5449, 5651