You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
N-(4-methoxyphenyl)-4-methyl-N-[4-[(1E,3E)-4-(4-methylphenyl)buta-1,3-dienyl]phenyl]aniline is the IUPAC name of a molecule. Please give its molecular formula.
user
C31H29NO
assistant