Task: Program Execution
Input (English): 9847 g p Z 969 S u 5775 9413 1413 O I 7583 6897 8515 8269 9967 B 9397 4607 4749 Q B M 1503 g
Output (English): 9847, 7, 16, 26, 969, 19, 21, 5775, 9413, 1413, 15, 9, 7583, 6897, 8515, 8269, 9967, 2, 9397, 4607, 4749, 17, 2, 13, 1503, 7