Task: Program Execution
Input (English): Q 9125 M L 4297 2841 4623 O S 3371 5887 6745 1307 y r 9331 2065 W 6829 93 G K 3667 x b Q 5249 5501 d 1993 h 8459 2891
Output (English): 1, 3, 4, 8, 9, 14, 15, 18, 21, 22, 24, 25, 26, 29, 31