Task: Program Execution
Input (English): w, 7191, H, S, m, 5183, 8867, 7025, 9047, M, f, p
Output (English): 1, 3, 4, 5, 10, 11, 12