Input: Head: PersonX finds PersonY's friends<sep>Tail: determined
Output: Yes