Input: Head: PersonX behaves like a PersonY<sep>Tail: similar
Output: Yes