Why the millipede and centipede have a different number of legs