The invention relates to the preparation of compounds (I)in which A=H or acyl and R<;1>;, R<;2>;, R<;3>;, R, n, X, Y and Z are as defined in claim 1 by halogenation and rearrangement of compounds (II) (optionally salt) to give compounds (III)a) ammonolysis of (III) to (IV), reduction of the nitro group and reaction with carbamate (salts) (VI) of the formula Ar-OCO-N(M)-Het, where Ar=phenyl, M=H or cation and Het=heterocycle from formula (I), to give compounds (I) (A=H), orb) ammonolysis of (III) to (IV), reaction with carbamate (salt) (VI) and reduction of resulting compounds (VII) at the NO2 group to give compounds (I) (A=H), orc) reaction of (III) with cyanates and amines (VII) of the formula HNR<;3>;-Het and reduction of the resulting compound (VII) at the NO2 group to give compounds (I) (A=H) and optional acylation if A is to be other than H. Compounds of the formulae (I) (A=H), (III), (IV), (V), (VI) (M=cation) and (VII) are novel.