Use permutation theory from the group theory.