A family hierarchy is usually presented by a pedigree tree. 一个家族的层次结构经常用一个血缘树来呈现. Your job is to count those family members who have no child. 你的工作是计算出没有孩子的家族成员个数. Input Each input file contains one test case. Each case starts with a line containing…