Task: Program Execution
Input (English): n, 5751, j, 2117, 8759, 3479
Output (English): 5751, 2117, 8759, 3479