Task: Program Execution
Input (English): m 8409 X 6165 6909 O c h 4709 x l 3465 b 2589 H 6587 P P 2837 1961 1637 9391 m 4817 x e 3203 q a W 7191 S w 8837
Output (English): 13, 8409, 24, 6165, 6909, 15, 3, 8, 4709, 24, 12, 3465, 2, 2589, 8, 6587, 16, 16, 2837, 1961, 1637, 9391, 13, 4817, 24, 5, 3203, 17, 1, 23, 7191, 19, 23, 8837