Input: Head: PersonX accepts PersonY offer<sep>Tail: to
Output: Yes