N,W=map(int, input().split()) ni,nj=map(int, input().split()) zi,zj=map(int, input().split()) if (ni+nj-zi-zj)%2==1: print('Yes') else: print('No')