h, w = map(int, input().split()) ni,nj = map(int,input().split()) zi,zj = map(int,input().split()) ni, nj = ni-1, nj-1 zi, zj = zi-1, zj-1 d = abs(ni-zi)+abs(nj-zj) if d == 1: print('Yes') exit() if h == 1 or w == 1: print('Yes') exit() if (zi, zj) in {(0, 0), (0, w-1), (h-1, 0), (h-1, w-1)}: if d == 3: print('Yes') exit() print('No')