You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
Convert the IUPAC name of a molecule 6-[2-[7-[1-(5-carboxypentyl)-3,3-dimethylindol-1-ium-2-yl]hepta-2,4,6-trienylidene]-3,3-dimethylindol-1-yl]hexanoic acid into molecular formula.
user
C39H49N2O4+
assistant