H,W = list(map(int,input().split())) a,b = list(map(int,input().split())) c,d = list(map(int,input().split())) print("Yes" if (a+b)%2 != (c+d)%2 else "No")