Input: Head: PersonX marries PersonY's daughter<sep>Tail: loved
Output: 


Answer: Yes