Task: Program Execution
Input (English): N, 8607, 1665, Q, b, 9207, 9349, 547, 5011, 3615, A, Z, D, J, G, 93
Output (English): N, Q, b, A, Z, D, J, G