Disclosed is a compound useful as a type I 11 β hydroxysteroid dehydrogenase inhibitor.A compound represented by the formula:a pharmaceutically acceptable salt or solvate thereof,whereinR1 is optionally substituted cycloalkyl, optionally substituted cycloalkenyl or the like,One of R2 and R3 is a group of the formula: -C(=O)-Y-R4,wherein Y is -NR9- or the like,R4 is optionally substituted cycloalkyl or the like,R9 is hydrogen or optionally substituted alkyl,W is optionally substituted alkylene,The other is a group of the formula: -V-R5,wherein Vis a bond, -O- or the like,R6 is hydrogen or optionally substituted alkyl,R5 is hydrogen, optionally substituted alkyl or the like,X is a bond, -S-, -SO- or the like,U is a bond or optionally substituted alkylene,R7 is hydrogen or optionally substituted alkyl,Zis-S-,-O-or-NR8-,R8 is hydrogen, optionally substituted alkyl or the like.