Using O=C1CCc2cc(N3CCNCC3)ccc2N1, O=C(Cl)c1ccc(Br)cc1 to produce O=C1CCc2cc(N3CCN(C(=O)c4ccc(Br)cc4)CC3)ccc2N1, please predict the agent for this reaction in SMILES notation in \boxed{$SMILES1, SMILES2, ...} format.