H,W = map(int,input().split()) ni,nj = map(int,input().split()) zi,zj = map(int,input().split()) if H==1 or W==1: print("Yes") else: d = abs(ni-zi)+abs(nj-zj) if d%2==0: print("No") else: print("Yes")