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