n,k = list(map(int, input().split()))

if n==1 or n==2:

    if k==1:

        print('YES')

    else:

        print('NO')

elif n%2==0:

    cnt = n/2

    if(cnt>=k):

        print('YES')

    else:

        print('NO')

else:

    cnt = n//2 + 1

    if(cnt>=k):

        print('YES')

    else:

        print('NO')
n,k = list(map(int, input().split()))

x = (n+1)//2

bl = (x>=k)

ans = 'YES' if bl else 'NO'

print(ans)
n, k = list(map(int, input().split()))
if n == 1 or n == 2:
    if k == 1:
        print("YES")
    else:
        print("NO")
elif n % 2 == 0:
    cnt = n / 2
    if cnt >= k:
        print("YES")
    else:
        print("NO")
else:
    cnt = n // 2 + 1
    if cnt >= k:
        print("YES")
    else:
        print("NO")

n, k = list(map(int, input().split()))
x = (n + 1) // 2
bl = x >= k
ans = "YES" if bl else "NO"
print(ans)

-if n == 1 or n == 2: -    if k == 1: -        print("YES") -    else: -        print("NO") -elif n % 2 == 0: -    cnt = n / 2 -    if cnt >= k: -        print("YES") -    else: -        print("NO") -else: -    cnt = n // 2 + 1 -    if cnt >= k: -        print("YES") -    else: -        print("NO") +x = (n + 1) // 2 +bl = x >= k +ans = "YES" if bl else "NO" +print(ans)