You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
Translate the chemical IUPAC name (8-methyl-8-azabicyclo[3.2.1]octan-3-yl) 1-methylindole-2-carboxylate into its molecular formula.
user
C18H22N2O2
assistant