Task: Program Execution
Input (English): G O 6567 Z 8421 h 5415 f G 9477 s d 9037 g M z 6753 3457 K h Q 5491 1467 t 8981 q m e 7055 4325
Output (English): 7, 15, 6567, 26, 8421, 8, 5415, 6, 7, 9477, 19, 4, 9037, 7, 13, 26, 6753, 3457, 11, 8, 17, 5491, 1467, 20, 8981, 17, 13, 5, 7055, 4325