Task: Program Execution
Input (English): J 4851 G 4837 259 5003 A 3813 u 1907 l 6739 X 7399 7001 3355 6583 a 7125 H 8769 7987 x S 1737 a 2043 107 T O d 5555 5723 6293 e w
Output (English): 10, 4851, 7, 4837, 259, 5003, 1, 3813, 21, 1907, 12, 6739, 24, 7399, 7001, 3355, 6583, 1, 7125, 8, 8769, 7987, 24, 19, 1737, 1, 2043, 107, 20, 15, 4, 5555, 5723, 6293, 5, 23