Task: Program Execution
Input (English): a q i 7729 8029 n B i c o v M i A G 5505 K 311 4821 543 5467 m v M 2745 M y 2735 x
Output (English): 1, 17, 9, 7729, 8029, 14, 2, 9, 3, 15, 22, 13, 9, 1, 7, 5505, 11, 311, 4821, 543, 5467, 13, 22, 13, 2745, 13, 25, 2735, 24