Input: Head: PersonX accepts PersonY invitation<sep>Tail: PersonX buys a gift for PersonY
Answer: Yes