Task: Program Execution
Input (English): 6981 H V 4757 W 4779 j 5005 6997 8323 9447 5473 3003 4269 d 1115 i s m m Y X m 5139 5521 6455 1727 A m x 2429
Output (English): 6981, 8, 22, 4757, 23, 4779, 10, 5005, 6997, 8323, 9447, 5473, 3003, 4269, 4, 1115, 9, 19, 13, 13, 25, 24, 13, 5139, 5521, 6455, 1727, 1, 13, 24, 2429