Task: Program Execution
Input (English): 1167 E 5843 827 8899 E w I 5597 u t f M M X 911 W 5861 5137 1569 3955 e s O 6189 4593 w M v 5911 M 3327 807 379 8301
Output (English): 1167, 5, 5843, 827, 8899, 5, 23, 9, 5597, 21, 20, 6, 13, 13, 24, 911, 23, 5861, 5137, 1569, 3955, 5, 19, 15, 6189, 4593, 23, 13, 22, 5911, 13, 3327, 807, 379, 8301