A benzene molecule can be modeled as six carbon atoms arranged in a regular hexagon in a plane. At each carbon atom, one of three radicals $\mathrm{NH}_{2}, \mathrm{COOH}$, or $\mathrm{OH}$ can be attached. How many such compounds are possible? (Make no distinction between single and double bonds between the atoms.)