A compound of the formula wherein R1 is a heterocycle having a skeleton consisting of 3 to 15 atoms including 1 to 5 nitrogen atom(s), which heterocycle is attached by a secondary nitrogen atom constituting the heterocycle; X is an oxygen atom, a nitrogen atom optionally substituted by a hydrocarbon group having 1 to 5 carbon atom(s) or a sulfur atom optionally oxidized with 1 or 2 oxygen, Y is a bond or a C1-5 alkylene group, R2 is (1) a hydrogen atom, (2) a hydroxy group, (3) a C1-5 alkoxy group, (4) a C1-5 alkylthio group, (5) a carbocycle having 3 to 15 carbon atoms or (6) a heterocycle having a skeleton consisting of 3 to 15 atoms including 1 to 5 heteroatom(s), provided that when Y is a bond, R2 is a carbocycle having 3 to 15 carbon atoms or a heterocycle having a skeleton consisting of 3 to 15 atoms including 1 to 5 heteroatom(s) and; one of R3 and R4 is a hydrogen atom or a group of the formula: -Z-R5 (Z is a bond or C1-10 alkylene group optionally having substituent(s) and R5 is (1) a hydrogen atom, (2) a hydroxy group, (3) a C1-5 alkoxy group, (4) a nitrile group, (5) a C1-5 alkoxy-carbonyl group, (6) a carboxyl group, (7) a carbamoyl group, (8) a (mono or di-C1-5 alkyl)carbamoyl group, (9) an amino group, (10) a (di or mono-C1-5 alkyl)amino group, (11) a (C1-5 alkoxy-carbonyl)amino group, (12) a C1-5 alkylthio group, (13) a carbocycle having 3 to 15 carbon atoms or (14) a heterocycle having a skeleton consisting of 3 to 15 atoms including 1 to 5 heteroatom(s)); the other is a group of the formula: -Z-R5 (Z and R5 are as defined above); and R3 and R4 may form, together with the adjacent nitrogen atom, a heterocycle having a skeleton consisting of 3 to 15 atoms, which heterocycle is attached by a secondary nitrogen atom constituting the heterocycle, wherein the above-mentioned heterocycle and a carbocycle having 3 to 15 carbon atoms are each optionally substituted by substituent(s) selected from the group consisting of C1-8 alkyl, C2-8 alkenyl, C2-8 alkynyl, C7-16 aralkyl, C3-8 cycloalkyl, C3-8 cycloalkenyl, C6-14 aryl, C1-8 alkoxy, C1-3 alkylenedioxy, hydroxy, halogen atom, amino, (di or mono-C1-5 alkyl)amino, (C1-5 alkoxy-carbonyl)amino, (C1-5 acyl)amino, (C1-5 acyl) (C1-5 alkyl)amino, C1-5 alkylthio, nitrile, nitro, C1-5 alkoxy-carbonyl, carboxyl, C1-5 alkyl-carbonyloxy, oxo, thioxo, C1-6 acyl group, sulfamoyl and (di or mono-C1-5 alkyl)sulfamoyl, or a salt thereof or a prodrug thereof have a superior cGMP specific phosphodiesterase (PDE) inhibitory activity, and can be used as an agent for the prophylaxis or treatment of cardiovascular diseases such as angina pectoris, heart failure, cardiac infarction, hypertension, arteriosclerosis and the like, allergic diseases such as asthma, or disorders of male or female genital function and the like.