Task: Program Execution
Input (English): g m w 6497 2973 H h 5129 k M 9667 373 1211 d 4387 q H 5821 L 6597 213 1697 1437 7645 a 5071 N 8361 1907 2359 9329 W
Output (English): 7, 13, 23, 6497, 2973, 8, 8, 5129, 11, 13, 9667, 373, 1211, 4, 4387, 17, 8, 5821, 12, 6597, 213, 1697, 1437, 7645, 1, 5071, 14, 8361, 1907, 2359, 9329, 23