x,y = map(int,input().split())

if x >= 1+2*(y-1):
    print('YES')
else:
    print('NO') x,y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y if x >= 1+2*(y-1):
    print('YES')
else:
    print('NO') x >= 1+2*(y-1) x 1+2*(y-1) 1 2*(y-1) 2 y-1 y 1 print('YES') print 'YES' print('NO') print 'NO' y = map(int,input().split()) map(int,input().split()) y x,y = map(int,input().split()) map(int,input().split()) x
x,y = map(int,input().split())

if x >= 1+2*(y-1):
    print('YES')
else:
    print('NO')