Task: Program Execution
Input (English): Q T A 5147 P c 2781 E 1361 q q c y 9735 c 8967 6533 t 6131 3377 4497 6383 I 1665 1741 m 9711 2875 4465 7191 2357 647 J f H O
Output (English): 4, 7, 9, 14, 16, 17, 19, 20, 21, 22, 24, 25, 27, 28, 29, 30, 31, 32