Task: Program Execution
Input (English): 7937, M, h, 2851, B, y, 6939, g, m, w, 5989, i, 8223, T, 4505, 9707, S, 635
Output (English): 1, 4, 7, 11, 13, 15, 16, 18