Acylation of perimidine with 1,3,5-triazines in polyphosphoric acid