h, w = map(int, input().split()) x1, y1 = map(int, input().split()) x2, y2 = map(int, input().split()) kari = (y2-y1) + (x2-x1) if kari % 2 == 1: print("Yes") else: print("No")