class Solution:

    def escapeGhosts(self, ghosts: List[List[int]], target: List[int]) ->bool:

        def taxi(P, Q):
            return abs(P[0] - Q[0]) + abs(P[1] - Q[1])
        return all(taxi([0, 0], target) < taxi(ghost, target) for ghost in
            ghosts)

f73151b86a71bb3fbffe0807981db583b62bd699
<mask token>

class Solution:
    <mask token>

class Solution:

    def escapeGhosts(self, ghosts: List[List[int]], target: List[int]) ->bool:

        def taxi(P, Q):
            return abs(P[0] - Q[0]) + abs(P[1] - Q[1])
        return all(taxi([0, 0], target) < taxi(ghost, target) for ghost in
            ghosts)
