import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

n, k = map(int, read().split())
if (n + 1) // 2 >= k:
    print('YES')
else:
    print('NO') import sys sys read = sys.stdin.buffer.read read sys.stdin.buffer.read sys.stdin.buffer sys.stdin sys stdin buffer read readline = sys.stdin.buffer.readline readline sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline readlines = sys.stdin.buffer.readlines readlines sys.stdin.buffer.readlines sys.stdin.buffer sys.stdin sys stdin buffer readlines sys.setrecursionlimit(10 ** 7) sys.setrecursionlimit sys setrecursionlimit 10 ** 7 10 7 n, k = map(int, read().split()) n map(int, read().split()) map int read().split() ().split () read split k if (n + 1) // 2 >= k:
    print('YES')
else:
    print('NO') (n + 1) // 2 >= k (n + 1) // 2 n + 1 n 1 2 k print('YES') print 'YES' print('NO') print 'NO' k = map(int, read().split()) map(int, read().split()) k readline = sys.stdin.buffer.readline sys.stdin.buffer.readline readline read = sys.stdin.buffer.read sys.stdin.buffer.read read readlines = sys.stdin.buffer.readlines sys.stdin.buffer.readlines readlines n, k = map(int, read().split()) map(int, read().split()) n
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

n, k = map(int, read().split())
if (n + 1) // 2 >= k:
    print('YES')
else:
    print('NO')
