Task: Program Execution
Input (English): n, B, U, d, i, u, r, 5507, B, W, 437, 9491, 7563, 2375, N, 875, 6015, 4411, Q, 1767, T, q
Output (English): n, B, U, d, i, u, r, B, W, N, Q, T, q