Task: Program Execution
Input (English): 311 3053 K 2651 o A H X w B 587 4139 6529 W U 5227 2073 Q 4507 9173 N 4517 6663 661 6757 w 1585 5865 Q 3641 O 5439 1163 N 2255 1377 B L
Output (English): 311, 3053, 11, 2651, 15, 1, 8, 24, 23, 2, 587, 4139, 6529, 23, 21, 5227, 2073, 17, 4507, 9173, 14, 4517, 6663, 661, 6757, 23, 1585, 5865, 17, 3641, 15, 5439, 1163, 14, 2255, 1377, 2, 12