#!/usr/bin/env python3
import sys

YES = "YES"  # type: str
NO = "NO"  # type: str

def solve(N: int, K: int):
    if N >= 2 * (K - 1) + 1:
        ret = YES
    else:
        ret = NO
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(N, K)

if __name__ == '__main__':
    main() import sys sys YES = "YES" YES "YES" NO = "NO" NO "NO" def solve(N: int, K: int):
    if N >= 2 * (K - 1) + 1:
        ret = YES
    else:
        ret = NO
    print(ret)
    return solve if N >= 2 * (K - 1) + 1:
        ret = YES
    else:
        ret = NO
     N >= 2 * (K - 1) + 1 N 2 * (K - 1) + 1 2 * (K - 1) 2 K - 1 K 1 1 ret = YES ret YES ret = NO ret NO print(ret) print ret return N: int N K: int K def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(N, K) main def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
     iterate_tokens for line in sys.stdin:
            for word in line.split():
                yield word
     line sys.stdin sys stdin for word in line.split():
                yield word
     word line.split() line.split line split yield word word tokens = iterate_tokens() tokens iterate_tokens() iterate_tokens N = int(next(tokens)) N int(next(tokens)) int next(tokens) next tokens K = int(next(tokens)) K int(next(tokens)) int next(tokens) next tokens solve(N, K) solve N K if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(N, K) def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(N, K) main def solve(N: int, K: int):
    if N >= 2 * (K - 1) + 1:
        ret = YES
    else:
        ret = NO
    print(ret)
    return def solve(N: int, K: int):
    if N >= 2 * (K - 1) + 1:
        ret = YES
    else:
        ret = NO
    print(ret)
    return solve NO = "NO" "NO" NO YES = "YES" "YES" YES
#!/usr/bin/env python3
import sys

YES = "YES"  # type: str
NO = "NO"  # type: str

def solve(N: int, K: int):
    if N >= 2 * (K - 1) + 1:
        ret = YES
    else:
        ret = NO
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(N, K)

if __name__ == '__main__':
    main()
