Task: Program Execution
Input (English): 8717 4597 W 9247 4697 1585 S 4757 4065 T 2803 m W Z o 4773 p R b 1513 2653 q G 1599 G 2695 6201 L 7893 3509 2887 5259 v 6693 2111 O R 3385
Output (English): 8717, 4597, 23, 9247, 4697, 1585, 19, 4757, 4065, 20, 2803, 13, 23, 26, 15, 4773, 16, 18, 2, 1513, 2653, 17, 7, 1599, 7, 2695, 6201, 12, 7893, 3509, 2887, 5259, 22, 6693, 2111, 15, 18, 3385