Domino synthesis of pyrimido and imidazoquinazolinones