Input: Head: PersonX expresses PersonY thanks<sep>Tail: grateful
Output: Yes