Input: Head: person<sep>Tail: perfect
Answer: Yes