Task: Program Execution
Input (English): 8365, z, 4587, a, 3679, W, N, Y, g, h, k, f, 851, N, 2295, W, A, w, 9017, 6657, F, K, 5381, L
Output (English): 8365, 4587, 3679, 851, 2295, 9017, 6657, 5381