Input: Head: cottage<sep>Tail: living in
Answer: Yes