class Solution:

    def escapeGhosts(self, ghosts: List[List[int]], target: List[int]) ->bool:
        mydist = abs(target[0]) + abs(target[1])
        for i in range(len(ghosts)):
            if abs(ghosts[i][0] - target[0]) + abs(ghosts[i][1] - target[1]
                ) <= mydist:
                return False
        return True

809f7737d1d6c6a51cb964d5b5a813f02c75f5eb
<mask token>

class Solution:
    <mask token>

class Solution:

    def escapeGhosts(self, ghosts: List[List[int]], target: List[int]) ->bool:
        mydist = abs(target[0]) + abs(target[1])
        for i in range(len(ghosts)):
            if abs(ghosts[i][0] - target[0]) + abs(ghosts[i][1] - target[1]
                ) <= mydist:
                return False
        return True
