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