You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
Convert the IUPAC name of a molecule 3-[(3E)-hexa-1,3,5-trien-3-yl]-5-[3-(3-pyridin-2-ylphenyl)phenyl]benzonitrile into molecular formula.
user
C30H22N2
assistant