Task: Program Execution
Input (English): W 985 N w 3923 J D M 9409 h Q 5549 Q 3901 y 1885 2033 2695 1469 H 6489 J n t 9203 4371 25 T 9249
Output (English): 23, 985, 14, 23, 3923, 10, 4, 13, 9409, 8, 17, 5549, 17, 3901, 25, 1885, 2033, 2695, 1469, 8, 6489, 10, 14, 20, 9203, 4371, 25, 20, 9249