h, w = map(int, input().split()) n1, n2 =map(int, input().split()) z1, z2 = map(int, input().split()) print("No" if (n1 + n2) & 1 == (z1 + z2) & 1 else "Yes")