Task: Program Execution
Input (English): T Q 8967 7709 l 3801 z n 3399 5125 8447 S d 6515 s a 5597 a 8573 J M H 7317 X 3801 R y h B 9943 D w 6091 4483 V 3389 j 8821 2877
Output (English): 1, 2, 5, 7, 8, 12, 13, 15, 16, 18, 20, 21, 22, 24, 26, 27, 28, 29, 31, 32, 35, 37