Task: Program Execution
Input (English): M, 9865, 6447, m, 3431, 521, 2417, A, m, 3633, h, 4831, F, 1907, a, m, X, 547, 7227, V, t, 5075, 5715, e
Output (English): 1, 4, 8, 9, 11, 13, 15, 16, 17, 20, 21, 24