Task: Program Execution
Input (English): M 2503 8241 X 5665 4133 2907 9931 7695 L Z t m 5489 2025 G g 9309 9099 z 6753 s 4141 W 5667 191 C V 7299 9503 z
Output (English): 1, 4, 10, 11, 12, 13, 16, 17, 20, 22, 24, 27, 28, 31