N[C:2]1[C:7]([C:8]#[N:9])=[CH:6][C:5]([Br:10])=[CH:4][N:3]=1.N([O-])=O.[Na+].[ClH:15]>O>[Br:10][C:5]1[CH:6]=[C:7]([C:8]#[N:9])[C:2]([Cl:15])=[N:3][CH:4]=1Compound 2 was dissolved in conc. HCl at 0° C., to which 1.1 equivalent of NaNO2 in H2O was added dropwise. Precipitation was formed. The white solid was filtered off, which gave the title compound 3. Overall yield was 70%.