Task: Program Execution
Input (English): 9001 i G 3461 V 1237 2043 1723 8503 1655 T M 1379 8537 C M 1869 6367 P 6005 z 4503 4139 3395 3583
Output (English): 9001, 9, 7, 3461, 22, 1237, 2043, 1723, 8503, 1655, 20, 13, 1379, 8537, 3, 13, 1869, 6367, 16, 6005, 26, 4503, 4139, 3395, 3583