Task: Program Execution
Input (English): 6109 R x u 2349 a 9521 9321 5557 D s T 27 757 4791 Q 2861 5863 8187 J e 9323 E 3207 m 4577 B O s a B
Output (English): 6109, 18, 24, 21, 2349, 1, 9521, 9321, 5557, 4, 19, 20, 27, 757, 4791, 17, 2861, 5863, 8187, 10, 5, 9323, 5, 3207, 13, 4577, 2, 15, 19, 1, 2