Input: Head: PersonX accepts PersonY invitation<sep>Tail: attends the party
Answer: Yes