Task: Program Execution
Input (English): N, d, 1847, K, v, 9457, o, 6939, 2809, p, 837, 9221, j, 5655
Output (English): 1847, 9457, 6939, 2809, 837, 9221, 5655