You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
Convert the IUPAC name of a molecule 2-[(E)-2-(2,4-dimethylcyclopenta-1,4-dien-1-yl)ethenyl]-N,N,1-trimethylquinolin-1-ium-6-amine;2-[(E)-2-[2,5-dimethyl-1-(3-methylpyridin-2-yl)pyrrol-3-yl]ethenyl]-N,N,1-trimethylquinolin-1-ium-6-amine into molecular formula.
user
C47H54N6+2
assistant