Cyclization of aryl , aroyl , and (4,6 dimethylpyrimidin 2 yl)cyanamides with methyl an thranilates, 2 aminophenyl ketones, and methyl 2 (3 oxopiperazin 2 yl)acetate leads to 2 amino 3,4 dihydroquinazolin 4 one, 2 aminoquinazoline, and 6 amino 1,3,4,8,9,9а hexa hydro 2H pyrazino[1,2 c]pyrimidine 1,8 dione derivatives, respectively.