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