Input: Head: PersonX marries PersonY's daughter<sep>Tail: accomplished and in love
Output: 


Answer: Yes