Task: Program Execution
Input (English): G 8351 1151 D O b 7857 g 405 h 2999 Q P 2233 R y b R Z 9609 5301 O q Q 8741 9541 J e
Output (English): 7, 8351, 1151, 4, 15, 2, 7857, 7, 405, 8, 2999, 17, 16, 2233, 18, 25, 2, 18, 26, 9609, 5301, 15, 17, 17, 8741, 9541, 10, 5