You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
N-(2-bromophenyl)-2-[[2-methyl-1-(3-methylpyridin-2-yl)propyl]amino]acetamide is the IUPAC name of a molecule. Please give its molecular formula.
user
C18H22BrN3O
assistant