h, w = map(int, input().split())
if h%2==0:
    a=h//2
    if a>=w:
        print("YES")
    else:
        print("NO")
else:
    a=h//2+1
    if a>=w:
        print("YES")
    else:
        print("NO") h, w = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w if h%2==0:
    a=h//2
    if a>=w:
        print("YES")
    else:
        print("NO")
else:
    a=h//2+1
    if a>=w:
        print("YES")
    else:
        print("NO") h%2==0 h%2 h 2 0 a=h//2 a h//2 h 2 if a>=w:
        print("YES")
    else:
        print("NO") a>=w a w print("YES") print "YES" print("NO") print "NO" a=h//2+1 a h//2+1 h//2 h 2 1 if a>=w:
        print("YES")
    else:
        print("NO") a>=w a w print("YES") print "YES" print("NO") print "NO" h, w = map(int, input().split()) map(int, input().split()) h a=h//2 h//2 a w = map(int, input().split()) map(int, input().split()) w a=h//2+1 h//2+1 a
h, w = map(int, input().split())
if h%2==0:
    a=h//2
    if a>=w:
        print("YES")
    else:
        print("NO")
else:
    a=h//2+1
    if a>=w:
        print("YES")
    else:
        print("NO")