Task: Program Execution
Input (English): S, N, H, 4231, 4759, M, W, 7451, O, e, 3909, 8999, n, 3719, H, t
Output (English): 1, 2, 3, 6, 7, 9, 10, 13, 15, 16