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


Answer: Yes