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