Input: Head: PersonX accepts PersonY invitation<sep>Tail: good
Output: 


Answer: Yes