Task: Program Execution
Input (English): 3717 2267 3845 M r M s 287 2025 2063 H 8223 9713 L r 4767 7171 8533 5073 3437 711 m 5149 6025 c
Output (English): 1, 2, 3, 8, 9, 10, 12, 13, 16, 17, 18, 19, 20, 21, 23, 24