A compound represented by the formula: wherein ring P is a benzene ring, an azetidine ring, a pyridine ring optionally further substituted by 1 - 4 substituents selected from a C 1-6 alkyl group, a pyridazine ring, or a pyrazine ring; ring Q is a benzene ring, a dihydrofuran ring, a furan ring, a thiophene ring, a pyrazole ring, an oxazole ring, or a thiazole ring; ring R is a cyclohexene ring, a benzene ring optionally further substituted by 1 - 4 substituents selected from a halogen atom and a C 1-6 alkyl group, a furan ring, or a pyridine ring; ring S is a benzene ring optionally further substituted by 1 - 4 substituents selected from (i) a C 1-6 alkoxy group optionally substituted by 1 - 5 substituents selected from a halogen atom and a C 3-6 cycloalkyl group optionally substituted by 1 - 4 halogen atoms, and (ii) a C 1-6 alkyl group, or a pyridine ring optionally further substituted by 1 - 4 substituents selected from (i) a C 1-6 alkoxy group optionally substituted by a C 3-6 cycloalkyl group, (ii) an oxo group, and (iii) a C 1-6 alkyl group; X is -O-; R 1 is a C 1-6 alkyl group or an amino group optionally mono- or di-substituted by a C 1-6 alkyl group; R 2 is a C 1-6 alkyl group; m and n are the same or different and each is 1 or 2, and m+n is 2 or 3, or a salt thereof. ring P is a benzene ring, an azetidine ring, a pyridine ring optionally further substituted by 1 - 4 substituents selected from a C 1-6 alkyl group, a pyridazine ring, or a pyrazine ring; a benzene ring, an azetidine ring, a pyridine ring optionally further substituted by 1 - 4 substituents selected from a C 1-6 alkyl group, a pyridazine ring, or a pyrazine ring; ring Q is a benzene ring, a dihydrofuran ring, a furan ring, a thiophene ring, a pyrazole ring, an oxazole ring, or a thiazole ring; a benzene ring, a dihydrofuran ring, a furan ring, a thiophene ring, a pyrazole ring, an oxazole ring, or a thiazole ring; ring R is a cyclohexene ring, a benzene ring optionally further substituted by 1 - 4 substituents selected from a halogen atom and a C 1-6 alkyl group, a furan ring, or a pyridine ring; a cyclohexene ring, a benzene ring optionally further substituted by 1 - 4 substituents selected from a halogen atom and a C 1-6 alkyl group, a furan ring, or a pyridine ring; ring S is a benzene ring optionally further substituted by 1 - 4 substituents selected from (i) a C 1-6 alkoxy group optionally substituted by 1 - 5 substituents selected from a halogen atom and a C 3-6 cycloalkyl group optionally substituted by 1 - 4 halogen atoms, and (ii) a C 1-6 alkyl group, or a pyridine ring optionally further substituted by 1 - 4 substituents selected from (i) a C 1-6 alkoxy group optionally substituted by a C 3-6 cycloalkyl group, (ii) an oxo group, and (iii) a C 1-6 alkyl group; a benzene ring optionally further substituted by 1 - 4 substituents selected from (i) a C 1-6 alkoxy group optionally substituted by 1 - 5 substituents selected from a halogen atom and a C 3-6 cycloalkyl group optionally substituted by 1 - 4 halogen atoms, and (ii) a C 1-6 alkyl group, or (i) a C 1-6 alkoxy group optionally substituted by 1 - 5 substituents selected from a halogen atom and a C 3-6 cycloalkyl group optionally substituted by 1 - 4 halogen atoms, and (ii) a C 1-6 alkyl group, or a pyridine ring optionally further substituted by 1 - 4 substituents selected from (i) a C 1-6 alkoxy group optionally substituted by a C 3-6 cycloalkyl group, (ii) an oxo group, and (iii) a C 1-6 alkyl group; (i) a C 1-6 alkoxy group optionally substituted by a C 3-6 cycloalkyl group, (ii) an oxo group, and (iii) a C 1-6 alkyl group; X is -O-; R 1 is a C 1-6 alkyl group or an amino group optionally mono- or di-substituted by a C 1-6 alkyl group; R 2 is a C 1-6 alkyl group; m and n are the same or different and each is 1 or 2, and m+n is 2 or 3, <EOS>