H,W=map(int,input().split()) y,x=map(int,input().split()) Y,X=map(int,input().split()) if (y+x+Y+X)%2==0: print("No") else: print("Yes")