( They ( ( have ( ( five digits ) ( on ( each ( of ( their ( front ( and ( hind legs ) ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (PRP They)) (VP (VBP have) (NP (NP (CD five) (NNS digits)) (PP (IN on) (NP (NP (DT each)) (PP (IN of) (NP (PRP$ their) (NN front) (CC and) (NN hind) (NNS legs))))))) (. .)))
They have five digits on each of their front and hind legs.
(ROOT (S (NP (NNS Primates)) (VP (VBP have) (NP (NP (CD five) (NNS digits)) (PP (IN on) (NP (DT each) (NN extremity))))) (. .)))