Task: Program Execution
Input (English): n, 5721, p, Q, u, 4097, J, 2033, 441
Output (English): 5721, 4097, 2033, 441