[NH2:1][C:2]1[CH:6]=[CH:5][NH:4][N:3]=1.[Br:7]/[C:8](=[CH:11]\N(C)C)/[CH:9]=O.C(O)C>C(O)(=O)C>[Br:7][C:8]1[CH:9]=[N:1][C:2]2[N:3]([N:4]=[CH:5][CH:6]=2)[CH:11]=13-Aminopyrazole (0.75 g, 9.04 mmol) was mixed with (2Z)-2-bromo-3-(dimethylamino)acrylaldehyde obtained at the previous step (1.85 g, 10.4 mmol). Absolute ethanol (20 mL) and glacial acetic acid (2 mL) were added. The reaction mixture was stirred under reflux for 16 h and evaporated to dryness. The residue was washed on a filter with cold ethanol/hexane mixture (3:1) and dried in a vacuum oven at 30° C. to give 6-bromopyrazolo[1,5-a]pyrimidine.