Task: Program Execution
Input (English): M 9701 6255 3365 507 r 297 6885 7657 b Z 659 f S 5505 8945 4609 5407 9367 V 8367 8295 3391 H 1569 e k 9961 H 8207 H t G N f 5445 n O 9429
Output (English): 13, 9701, 6255, 3365, 507, 18, 297, 6885, 7657, 2, 26, 659, 6, 19, 5505, 8945, 4609, 5407, 9367, 22, 8367, 8295, 3391, 8, 1569, 5, 11, 9961, 8, 8207, 8, 20, 7, 14, 6, 5445, 14, 15, 9429