Task: Program Execution
Input (English): X m r 6169 C y 9085 P q 9973 4049 5161 9735 m 5623 C k 1347 P 1257 V 9429 O 153 2621 4167 2375 2673
Output (English): 24, 13, 18, 6169, 3, 25, 9085, 16, 17, 9973, 4049, 5161, 9735, 13, 5623, 3, 11, 1347, 16, 1257, 22, 9429, 15, 153, 2621, 4167, 2375, 2673