When naming amides, replace the -ic acid or -oic acid of the corresponding carboxylic acid with -amide. Substituents, irrespective of whether they are attached to the acyl group or the amide nitrogen, are listed in alphabetical order. Substitution on nitrogen is indicated by the locant N-.