Using CC[Mg]Br, CCOC(=O)c1cn(C(=O)OC(C)C)c2nc(C)ccc2c1=O to produce CCOC(=O)C1C(=O)c2ccc(C)nc2N(C(=O)OC(C)C)C1CC, please predict the agent for this reaction in SMILES notation in \boxed{$SMILES1, SMILES2, ...} format.