Input: Head: PersonX accepts PersonY invitation<sep>Tail: to invite other people
Output: Yes