N, K = map( int, input().split() )


if K <= (N+1)/2: print( 'YES' )
else: print( 'NO' ) N, K = map( int, input().split() ) N map( int, input().split() ) map int input().split() ().split () input split K if K <= (N+1)/2: print( 'YES' )
else: print( 'NO' ) K <= (N+1)/2 K (N+1)/2 N+1 N 1 2 K = map( int, input().split() ) map( int, input().split() ) K N, K = map( int, input().split() ) map( int, input().split() ) N
N, K = map( int, input().split() )


if K <= (N+1)/2: print( 'YES' )
else: print( 'NO' )