from sys import exit h,w=map(int,input().split()) n1,n2=map(int,input().split()) z1,z2=map(int,input().split()) if h==1 or w==1: print("Yes") exit() if (n1+n2-z1-z2)%2==0: print("No") else: print("Yes")