Task: Program Execution
Input (English): I 8439 g 2735 9599 h 7737 4085 1397 s n Q 2995 2449 w 2647 b 9927 A 2789 9193 3867 B J h G 3301
Output (English): 1, 3, 6, 10, 11, 12, 15, 17, 19, 23, 24, 25, 26