Using Br[Mg]c1ccccc1, COC(=O)CCN1CCCN(Cc2ccc(Cl)cc2)CC1 to produce OC(CCN1CCCN(Cc2ccc(Cl)cc2)CC1)(c1ccccc1)c1ccccc1, please predict the agent for this reaction in SMILES notation in \boxed{$SMILES1, SMILES2, ...} format.