R=range def J(): return map(int,input().split()) N,A,B=J() L=R(N) Z=[list(J())for i in L] P=R(1<>k&1<1)*d*(abs(w[0]-Z[i][0])+abs(w[1]-Z[i][1])+(i!=j)*(abs(w[0]-v[0])+abs(w[1]-v[1]))>=A or abs(w[2]-v[2])>=B):D[S|1<