Task: Program Execution
Input (English): T M 3457 i 4569 a 5951 2103 g 1255 3447 M s k 5263 m 2019 7801 p 1699 6403 F 6781 1829 k 5133 C G 1049 X V 8945 N g R g P 9125 693 S
Output (English): 3, 5, 7, 8, 10, 11, 15, 17, 18, 20, 21, 23, 24, 26, 29, 32, 38, 39