Task: Program Execution
Input (English): P 7869 D 2991 p M 43 9893 v 5031 W 8151 765 T 4237 A X l 633 j 7621 7293 K X 3837 H L 8733 6175 9755 J 8385
Output (English): 16, 7869, 4, 2991, 16, 13, 43, 9893, 22, 5031, 23, 8151, 765, 20, 4237, 1, 24, 12, 633, 10, 7621, 7293, 11, 24, 3837, 8, 12, 8733, 6175, 9755, 10, 8385