Input: Head: hat<sep>Tail: keeping hair in place
Answer: Yes