Task: Program Execution
Input (English): M 1021 2123 1463 1655 8259 I 6119 9707 A M m 9243 T s 3799 i 3423 1109 Y 1551 q k 4477 t R y 2737 3739 z c o
Output (English): 2, 3, 4, 5, 6, 8, 9, 13, 16, 18, 19, 21, 24, 28, 29