cyclic permutations