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