Task: Program Execution
Input (English): P 9573 9835 8743 w 5653 Q 4385 o W 7383 5543 Q 1825 7483 1729 z 345 31 3325 2175 571 541 5709 B 7963
Output (English): 16, 9573, 9835, 8743, 23, 5653, 17, 4385, 15, 23, 7383, 5543, 17, 1825, 7483, 1729, 26, 345, 31, 3325, 2175, 571, 541, 5709, 2, 7963