Input: Head: store<sep>Tail: purchase the item
Answer: Yes