Using O=C1OCc2cc(CCBr)ccc21, O=C1OCc2cc(CCN3CCNCC3=O)ccc21 to produce O=C1OCc2cc(CCN3CCN(CCc4ccc5c(c4)COC5=O)C(=O)C3)ccc21, please predict the agent for this reaction in SMILES notation in \boxed{$SMILES1, SMILES2, ...} format.