Task: Program Execution
Input (English): 5169, 731, 7727, w, T, W, J, 6689, 9629, 8001, 6391, W, 1083, o, d, 2477, z, 6547, t, 2633, P, 8503, w, 3957
Output (English): 5169, 731, 7727, 6689, 9629, 8001, 6391, 1083, 2477, 6547, 2633, 8503, 3957