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


Answer: No