Input: Head: PersonX gives birth to PersonY<sep>Tail: maternal
Output: Yes