You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
For the molecule named N-(2-cyclopentyl-2-hydroxyethyl)-2,3-dimethyl-1H-indole-7-carboxamide by IUPAC nomenclature, provide its molecular formula.
user
C18H24N2O2
assistant