Task: Program Execution
Input (English): M 8025 R s 1231 7511 1555 8295 H 7317 6483 K 3269 l 7885 d 8169 c F 7863 8243 W 8405 8547 1393
Output (English): 13, 8025, 18, 19, 1231, 7511, 1555, 8295, 8, 7317, 6483, 11, 3269, 12, 7885, 4, 8169, 3, 6, 7863, 8243, 23, 8405, 8547, 1393