Input: Head: PersonX exerts PersonY effect<sep>Tail: to rest
Output: Yes