Task: Program Execution
Input (English): B 5851 2919 G 809 2305 7467 i V 4913 K L T 2979 6017 W 5597 1317 r b 1805 u 1407 3629 x
Output (English): 2, 5851, 2919, 7, 809, 2305, 7467, 9, 22, 4913, 11, 12, 20, 2979, 6017, 23, 5597, 1317, 18, 2, 1805, 21, 1407, 3629, 24