Task: Program Execution
Input (English): M, G, 8093, 8953, 7589, 1775, 2221, B, 3523, 4709, W, b, 4739, H, 6363, e, a, E, 3871, 8973, k, 3457, g, 11
Output (English): 1, 2, 8, 11, 12, 14, 16, 17, 18, 21, 23