Task: Program Execution
Input (English): w, 9901, 5165, h, 7043, 63, 597, s, 2341, 6551, M, n, 4099, X, S, 9865, 7437, S, D
Output (English): 1, 4, 8, 11, 12, 14, 15, 18, 19