Task: Program Execution
Input (English): 3987, N, 1887, 8905, k, f, 5989, 4031
Output (English): N, k, f