Using O=C1CCC(=O)N1Br, COC(=O)C=CC(C(=O)OC)=C(C)NCC1CCCC1 to produce COC(=O)c1cc(Br)c(=O)n(CC2CCCC2)c1C, please predict the agent for this reaction in SMILES notation in \boxed{$SMILES1, SMILES2, ...} format.