[NH2:1][C:2]1[C:6]([C:7]#[N:8])=[C:5]([NH2:9])[NH:4][N:3]=1.IC.[C:12](=O)([O-])[O-].[K+].[K+]>CC(C)=O>[NH2:1][C:2]1[C:6]([C:7]#[N:8])=[C:5]([NH2:9])[N:4]([CH3:12])[N:3]=13,5-Diamino-4-cyanopyrazole (6.1 g) prepared as in Example 3, iodomethane (3.1 ml), anhydrous potassium carbonate (7.6 g) and acetone (120 ml) were heated under reflux for 18 hours. The mixture was filtered, and the filtrate was concentrated to a viscous oil. Trituration of the oil with water gave a precipitate of 3,5-diamino-4-cyano-1-methylpyrazole (1.1 g), m.p. 194°-196° C.