Task: Program Execution
Input (English): A G J a 1765 2455 L 2603 d 3435 X 131 Y K 2371 A t 1127 o C M 5651 6227 1329 6399 975 7671 C 1941 F 8109 2615 d
Output (English): 1, 7, 10, 1, 1765, 2455, 12, 2603, 4, 3435, 24, 131, 25, 11, 2371, 1, 20, 1127, 15, 3, 13, 5651, 6227, 1329, 6399, 975, 7671, 3, 1941, 6, 8109, 2615, 4