Input: Head: PersonX inherits from PersonX's mother<sep>Tail: to inherits to mother
Output: Yes