h,w=map(int,input().split()) y,x=map(int,input().split()) Y,X=map(int,input().split()) diff=abs(x-X)+abs(y-Y) print('Yes' if diff%2==1 else 'No')