# 1
# https://atcoder.jp/contests/yahoo-procon2019-qual/tasks/yahoo_procon2019_qual_a
N,K=map(int,input().split())
print('YES' if N-K-(K-1)>=0 else 'NO') N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K print('YES' if N-K-(K-1)>=0 else 'NO') print 'YES' if N-K-(K-1)>=0 else 'NO' N-K-(K-1)>=0 N-K-(K-1) N-K N K K-1 K 1 0 'YES' 'NO' N,K=map(int,input().split()) map(int,input().split()) N K=map(int,input().split()) map(int,input().split()) K
# 1
# https://atcoder.jp/contests/yahoo-procon2019-qual/tasks/yahoo_procon2019_qual_a
N,K=map(int,input().split())
print('YES' if N-K-(K-1)>=0 else 'NO')