Input: Head: PersonX accepts PersonY offer<sep>Tail: Person X thanks person Y
Answer: Yes