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