Task: Program Execution
Input (English): a 6515 1185 o 7781 2213 6077 2461 8771 S L P 9841 P 7851 s 6149 r 7129 3325 X 8229 h J Y 3525 3915 8663 W 2323 B x d 4263 w o 4645 w
Output (English): 1, 6515, 1185, 15, 7781, 2213, 6077, 2461, 8771, 19, 12, 16, 9841, 16, 7851, 19, 6149, 18, 7129, 3325, 24, 8229, 8, 10, 25, 3525, 3915, 8663, 23, 2323, 2, 24, 4, 4263, 23, 15, 4645, 23