Divide into three groups