Task: Program Execution
Input (English): a 3105 1321 7035 B z 7297 s 9107 7389 E 9239 l n E 8255 h 4269 t k k P W w 3267 4753 6429 7191 6001 M J k 5023
Output (English): 1, 3105, 1321, 7035, 2, 26, 7297, 19, 9107, 7389, 5, 9239, 12, 14, 5, 8255, 8, 4269, 20, 11, 11, 16, 23, 23, 3267, 4753, 6429, 7191, 6001, 13, 10, 11, 5023