#maze rabirynce def ab(a1): if a1<0: a1*=-1 return a h,w=(int(i) for i in input().split()) sx,sy,gx,gy=(int(i) for i in input().split()) b=[[int(i) for i in input().split()] for i in range(H)] v=[[sx,sy]] Nd=0 i=0 a=[0]*w*h while Nd<1 and i=0 and ux=0 and uy=0 and ux=0 and uy