Input: Head: word document<sep>Tail: write stories with
Answer: Yes