Task: Program Execution
Input (English): H H t 2661 q 3225 h P 9367 t 9441 M A 1071 1965 8483 A 9861 M D 1523 837 V 9879 X u L s 9621 l 1971 S S 9711 7331 4439 1723 J 7481
Output (English): 4, 6, 9, 11, 14, 15, 16, 18, 21, 22, 24, 29, 31, 34, 35, 36, 37, 39