Task: Program Execution
Input (English): J 1971 3523 5195 J j 9763 h W 2987 U O 1459 2215 i V 6381 1399 3077 6591 8081 C O J 7485 4975 2349 8845 J 5883 3093 2275 8439 h E 8975
Output (English): 10, 1971, 3523, 5195, 10, 10, 9763, 8, 23, 2987, 21, 15, 1459, 2215, 9, 22, 6381, 1399, 3077, 6591, 8081, 3, 15, 10, 7485, 4975, 2349, 8845, 10, 5883, 3093, 2275, 8439, 8, 5, 8975