Task: Program Execution
Input (English): m g 2285 Q 8145 1563 4803 1975 2779 P S 5707 v 1343 R T 3739 4307 4561 4891 X 7827 289 X 8197 1169 1067 m p D 9365
Output (English): 13, 7, 2285, 17, 8145, 1563, 4803, 1975, 2779, 16, 19, 5707, 22, 1343, 18, 20, 3739, 4307, 4561, 4891, 24, 7827, 289, 24, 8197, 1169, 1067, 13, 16, 4, 9365