Task: Program Execution
Input (English): A A X 9805 E l 2307 J 9425 a l G 5307 3125 s s 5389 j 8679 o 2659 9285 1277 3833 S
Output (English): 1, 1, 24, 9805, 5, 12, 2307, 10, 9425, 1, 12, 7, 5307, 3125, 19, 19, 5389, 10, 8679, 15, 2659, 9285, 1277, 3833, 19