Task: Program Execution
Input (English): 1673 N 5493 X u T B 4687 5247 B x O 3231 S L i 9781 B 3347 u 3775 g z 5361 9131 z B
Output (English): 1673, 14, 5493, 24, 21, 20, 2, 4687, 5247, 2, 24, 15, 3231, 19, 12, 9, 9781, 2, 3347, 21, 3775, 7, 26, 5361, 9131, 26, 2