Task: Program Execution
Input (English): 3843 J U Q 3765 H 9209 j 2473 G 2427 D C T J 9433 1707 787 f 3713 Q 5481 4345 n 6163 X 1797 1991 3247 4941 M L F 9255 5587 D 2825 E p
Output (English): 1, 5, 7, 9, 11, 16, 17, 18, 20, 22, 23, 25, 27, 28, 29, 30, 34, 35, 37