Task: Program Execution
Input (English): 1985 639 8909 4945 W L 1017 M E 3625 Q 4023 S o q 2387 4633 8183 6135 4587 v G s R L E T
Output (English): 1985, 639, 8909, 4945, 23, 12, 1017, 13, 5, 3625, 17, 4023, 19, 15, 17, 2387, 4633, 8183, 6135, 4587, 22, 7, 19, 18, 12, 5, 20