Input: Head: hat<sep>Tail: wearing
Answer: Yes