Task: Program Execution
Input (English): X 1583 1843 9029 M J 3715 o D 5929 2023 P 737 R W 5755 A 7439 9295 8563 n 9621 B 3973 n 6405 9157 v B q 3521 g 3433
Output (English): 24, 1583, 1843, 9029, 13, 10, 3715, 15, 4, 5929, 2023, 16, 737, 18, 23, 5755, 1, 7439, 9295, 8563, 14, 9621, 2, 3973, 14, 6405, 9157, 22, 2, 17, 3521, 7, 3433