Input: Head: hat<sep>Tail: symbol for group
Answer: Yes