def solve(n, k):
    return "YES" if (2*k-1 <= n) else "NO"

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

n, k = map(int, input().split())
print(solve(n, k))