Input: Head: store<sep>Tail: shop for gifts in
Answer: Yes