Task: Program Execution
Input (English): r G 8025 4787 4699 4479 n B m m 3519 8401 W n a 9785 h i 6211 3885 3351 S Q M 1743 X
Output (English): 18, 7, 8025, 4787, 4699, 4479, 14, 2, 13, 13, 3519, 8401, 23, 14, 1, 9785, 8, 9, 6211, 3885, 3351, 19, 17, 13, 1743, 24