Split the legs into the down group and the up group.