Task: Program Execution
Input (English): F, F, 9703, 9575, G, 4207, 1009, 8825, 4767, M, 731, I, 5489, 6177, 9967, K, S, O, 237, 4559, 4387, 7821, C, T
Output (English): 1, 2, 5, 10, 12, 16, 17, 18, 23, 24