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