import sys input = sys.stdin.readline H, W = map(int, input().split()) y, x = map(int, input().split()) u, v = map(int, input().split()) if abs(y - u) + abs(x - v) == 1: print("Yes") exit(0) if (u == 1 or u == H) and (v == 1 or v == W): s = 2 if u == H: s = H - 1 t = 2 if v == W: t = W - 1 if abs(s - y) + abs(t - x) == 1: print("Yes") exit(0) print("No")