#!/usr/bin/env python3
import sys
def input():
    return sys.stdin.readline()[:-1]

def main():
    N, K = map(int, input().split())
    if N >= 2 * (K - 1) + 1:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main() import sys sys def input():
    return sys.stdin.readline()[:-1] input return sys.stdin.readline()[:-1] sys.stdin.readline()[:-1] sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline :-1 -1 def main():
    N, K = map(int, input().split())
    if N >= 2 * (K - 1) + 1:
        print('YES')
    else:
        print('NO') main N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K if N >= 2 * (K - 1) + 1:
        print('YES')
    else:
        print('NO') N >= 2 * (K - 1) + 1 N 2 * (K - 1) + 1 2 * (K - 1) 2 K - 1 K 1 1 print('YES') print 'YES' print('NO') print 'NO' if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def input():
    return sys.stdin.readline()[:-1] def input():
    return sys.stdin.readline()[:-1] input def main():
    N, K = map(int, input().split())
    if N >= 2 * (K - 1) + 1:
        print('YES')
    else:
        print('NO') def main():
    N, K = map(int, input().split())
    if N >= 2 * (K - 1) + 1:
        print('YES')
    else:
        print('NO') main
#!/usr/bin/env python3
import sys
def input():
    return sys.stdin.readline()[:-1]

def main():
    N, K = map(int, input().split())
    if N >= 2 * (K - 1) + 1:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()
