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