Input: Head: basket<sep>Tail: put groceries in
Answer: Yes