Task: Program Execution
Input (English): M 1673 9293 m H V 4407 2899 Y 3145 r D 6049 Z 7895 I 3437 m 6455 2445 M 3547 I 175 2437 K G 1539 Q J 4171 2737 4861 J 7775
Output (English): 1, 4, 5, 6, 9, 11, 12, 14, 16, 18, 21, 23, 26, 27, 29, 30, 34