Task: Program Execution
Input (English): q, p, X, 2865, 6505, T, W, n, 3685, 4683, 4259, J, Q, H, s, 5165
Output (English): q, p, X, T, W, n, J, Q, H, s