You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
Translate the chemical IUPAC name 1-[4-[(2Z,4Z)-5-aminopenta-2,4-dienyl]phenyl]-N'-methyl-N'-[(Z)-1-[4-(4-methylphenyl)phenyl]-3-naphthalen-2-ylprop-1-enyl]methanediamine into its molecular formula.
user
C39H39N3
assistant