Task: Program Execution
Input (English): v c 8317 5029 m 5261 5601 5633 5665 1745 3285 Y 5353 4161 4873 n 6565 4463 C 9 7803 1377 Z 51 c 3835 W 5425 4861 G P g M
Output (English): 22, 3, 8317, 5029, 13, 5261, 5601, 5633, 5665, 1745, 3285, 25, 5353, 4161, 4873, 14, 6565, 4463, 3, 9, 7803, 1377, 26, 51, 3, 3835, 23, 5425, 4861, 7, 16, 7, 13