Input: Head: PersonX holds in PersonY's hand<sep>Tail: Safe
Output: Yes