Input: Head: PersonX finds PersonY trace<sep>Tail: to continue looking for PersonY
Output: Yes