The relations must list, in order: a power of each generator, a power of the product of all the generators, and other relations consistent with these. Try out some of the examples!