"""
NTC here
"""
import sys
inp= sys.stdin.readline
input = lambda : inp().strip()
flush= sys.stdout.flush
# import threading
# setrecursionlimit(10**6)
# threading.stack_size(2**26)

def iin(): return int(input())
def lin(): return list(map(int, input().split()))

# range = xrange
# input = raw_input

def main():
    n, k = lin()
    print('YES' if k*2-1<=n else 'NO')





        
main()
#threading.Thread(target=main).start() """
NTC here
""" import sys sys inp= sys.stdin.readline inp sys.stdin.readline sys.stdin sys stdin readline input = lambda : inp().strip() input lambda : inp().strip() inp().strip() ().strip () inp strip flush= sys.stdout.flush flush sys.stdout.flush sys.stdout sys stdout flush def iin(): return int(input()) iin def lin(): return list(map(int, input().split()))

# range = xrange
# input = raw_input lin def main():
    n, k = lin()
    print('YES' if k*2-1<=n else 'NO')





         main n, k = lin() n lin() lin k print('YES' if k*2-1<=n else 'NO') print 'YES' if k*2-1<=n else 'NO' k*2-1<=n k*2-1 k*2 k 2 1 n 'YES' 'NO' main() main def lin(): return list(map(int, input().split()))

# range = xrange
# input = raw_input def lin(): return list(map(int, input().split()))

# range = xrange
# input = raw_input lin flush= sys.stdout.flush sys.stdout.flush flush def main():
    n, k = lin()
    print('YES' if k*2-1<=n else 'NO')





         def main():
    n, k = lin()
    print('YES' if k*2-1<=n else 'NO')





         main inp= sys.stdin.readline sys.stdin.readline inp input = lambda : inp().strip() lambda : inp().strip() input def iin(): return int(input()) def iin(): return int(input()) iin
"""
NTC here
"""
import sys
inp= sys.stdin.readline
input = lambda : inp().strip()
flush= sys.stdout.flush
# import threading
# setrecursionlimit(10**6)
# threading.stack_size(2**26)

def iin(): return int(input())
def lin(): return list(map(int, input().split()))

# range = xrange
# input = raw_input

def main():
    n, k = lin()
    print('YES' if k*2-1<=n else 'NO')





        
main()
#threading.Thread(target=main).start()