You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
Translate the chemical IUPAC name 1-[(7-methoxy-1,2,4,5-tetrahydro-3-benzazepin-3-yl)sulfonylmethyl]cyclopentane-1-carbonitrile into its molecular formula.
user
C18H24N2O3S
assistant