Task: Program Execution
Input (English): n, 3521, d, 2905, 285, 1499, 5669, 1103, Q, 5093
Output (English): 3521, 2905, 285, 1499, 5669, 1103, 5093