You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
4-[2-[1-[2-(4-methoxyphenyl)ethyl]-2,5-dimethylpyrrol-3-yl]-2-oxoethoxy]benzonitrile is the IUPAC name of a molecule. Please give its molecular formula.
user
C24H24N2O3
assistant