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