Br[C:2]1[N:3]=[C:4]([C:17]#[N:18])[C:5]([NH:8][C:9](=[O:16])[C:10]2[CH:15]=[CH:14][CH:13]=[CH:12][CH:11]=2)=[N:6][CH:7]=1.[F-:19].[K+].C(OCC)(=O)C.O>CS(C)=O>[C:17]([C:4]1[C:5]([NH:8][C:9](=[O:16])[C:10]2[CH:15]=[CH:14][CH:13]=[CH:12][CH:11]=2)=[N:6][CH:7]=[C:2]([F:19])[N:3]=1)#[N:18]In 86 mL of dimethyl sulfoxide was dissolved 4.3 g of N-(5-bromo-3-cyano-2-pyrazinyl)benzamide. After adding 8.3 g of potassium fluoride, the mixture thus obtained was stirred at 110-115° C. for one hour. The reaction mixture was returned to room temperature, a mixture of 100 mL of ethyl acetate and 200 mL of water was added, and the organic layer was separated. The organic layer thus obtained was washed successively with water and saturated aqueous solution of sodium chloride, treated with active charcoal and dried on anhydrous magnesium sulfate, and the solvent was removed under reduced pressure. The residue thus obtained was purified by silica gel column chromatography [eluent: toluene:ethyl acetate=5:1] to obtain 0.47 g of N-(3-cyano-5-fluoro-2-pyrazinyl)benzamide as a white-colored solid product.