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