Input: Head: PersonX leaves home<sep>Tail: to lock the door
Answer: Yes