Task: Program Execution
Input (English): A 4439 l 4745 m A o N 7349 8035 A 4553 8729 x G 3041 W R N h 3111 B 9995 Y J P 7729 8463
Output (English): 1, 4439, 12, 4745, 13, 1, 15, 14, 7349, 8035, 1, 4553, 8729, 24, 7, 3041, 23, 18, 14, 8, 3111, 2, 9995, 25, 10, 16, 7729, 8463