Input: Head: dog<sep>Tail: loved by master
Answer: Yes