Task: Program Execution
Input (English): 183 1451 p d M 2163 7743 407 3441 o X 9995 p d 6225 5155 9731 6857 9827 V s P l 325 J 9723 J 8231 A 8961
Output (English): 183, 1451, 16, 4, 13, 2163, 7743, 407, 3441, 15, 24, 9995, 16, 4, 6225, 5155, 9731, 6857, 9827, 22, 19, 16, 12, 325, 10, 9723, 10, 8231, 1, 8961