one of X and Y is a nitrogen atom, and the other is a nitrogen atom or an oxygen atom ring A represents a 5- or 6-member heteroaryl ring or benzene ring which may have 1 or 2 halogen atoms or C1 to C6 alkyl groups Z represents a single bond, a methylene group, an ethylene group, an oxygen atom, a sulfur atom, -CH2O-, -OCH2-, -NH-, -CH2NH-, -NHCH2-, -CH2S-, or -SCH2- R3 represents a hydrogen atom or a halogen atom, or represents a C1-6 alkyl group, a C3-8 cycloalkyl group, a C6-10 aryl group, a 5- or 6-member heteroaryl group, or a 5- or 6-member non-aromatic heterocyclic group, each of which may have 1 or 2 substituents selected from substituent group a R4 represents a hydrogen atom or a halogen atom and R represents a hydrogen atom, or represents a C1-6 alkyl group which may be substituted with a dimethylamino group, [substituent group a] a halogen atom, a cyano group, a C1-6 alkyl group, a C1-6 alkoxy group, a C1-6 alkoxycarbonyl group, a C3-8 cycloalkyl group, a C2-6 alkenyl group and a C2-6 alkynyl group).