Using Br[Mg]c1ccccc1, O=C1c2ccccc2-c2[nH]c(=O)cnc21 to produce O=c1cnc2c([nH]1)-c1ccccc1C2(O)c1ccccc1, please predict the agent for this reaction in SMILES notation in \boxed{$SMILES1, SMILES2, ...} format.