import java.util.*; class Person { String name; int born; Person father,mother; List children; Person(String name, int born, Person father, Person mother){ this.name = name; this.born = born; this.father = father; this.mother = mother; children = new ArrayList(); father.addChild( this ); mother.addChild( this ); } void addChild(Person p){ // pre: p has this as mother or father; children.add(p); } int offspring(){ int res = children.size(); for (int i=0;i