Task: Program Execution
Input (English): 8985, N, 5391, 5639, U, i, 3461, Z, 5623, 2667, r, z, K, 7351, 7411, 249, q, D, 327, p
Output (English): N, U, i, Z, r, z, K, q, D, p