Task: Program Execution
Input (English): X, 1985, 9105, q, 3301, U, 9001, 687, M, W, 6365, i, 8791, 1573, 5345, 4875, 209, Y, g, 8233, 3061, 5115, 8231, O
Output (English): X, q, U, M, W, i, Y, g, O