HINT 15X:
Work out the total length of the genealogy first.