Task: Program Execution
Input (English): 6317 Q 8407 a n F 9321 b M 2629 M N H 2997 U v 4925 3267 2045 C 9505 6837 f 3793 9499 A 7317 3421 g
Output (English): 2, 4, 5, 6, 8, 9, 11, 12, 13, 15, 16, 20, 23, 26, 29