Task: Program Execution
Input (English): 3003 N w E c 4319 589 L 1245 M M 267 B 6095 8243 P 7477 X 6205 5989 y S x 5989 V m L 995 V M 5313
Output (English): 3003, 14, 23, 5, 3, 4319, 589, 12, 1245, 13, 13, 267, 2, 6095, 8243, 16, 7477, 24, 6205, 5989, 25, 19, 24, 5989, 22, 13, 12, 995, 22, 13, 5313