Task: Program Execution
Input (English): i, u, 9171, 9263, 2297, 7973, d, B, d, w, M
Output (English): i, u, d, B, d, w, M