Task: Program Execution
Input (English): n, T, 9645, K, q, y, r, Y, 1137, Y, 5381, 2287, H, I, X, S
Output (English): n, T, K, q, y, r, Y, Y, H, I, X, S