Synthesis of tricyclic nitrogen heterocycles by a sequence of palladium-catalyzed N-H and C(sp3)-H arylations.