[C:1]([C:3]1[CH:7]=[CH:6][NH:5][N:4]=1)#[N:2].[CH2:8]=[O:9]>CC(C)=O>[OH:9][CH2:8][N:5]1[CH:6]=[CH:7][C:3]([C:1]#[N:2])=[N:4]1The mixture of 0.86 g of 3-cyano-1H-pyrazole and 0.55 g of paraformaldehyde was stirred at 130° C. for 7 hours. After the reaction mixture was cooled to room temperature, acetone was added to the reaction mixture. After the mixture was filtered, the filterate was concentrated under reduced pressure to obtain 0.89 g of 1-(hydroxymethyl)-3-cyano-1H-pyrazole.