Task: Program Execution
Input (English): 3067, N, 561, 6949, 8703, 3173
Output (English): 3067, 561, 6949, 8703, 3173