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