Task: Program Execution
Input (English): N, 9147, m, O, 4753, 5313, 6317, 5091
Output (English): 9147, 4753, 5313, 6317, 5091