H,W = map(int,input().split()) h1,w1 = map(int,input().split()) h2,w2 = map(int,input().split()) mann = abs(h1-h2) + abs(w1-w2) if mann % 2 == 0: print('No') else: print('Yes')