while True:
    try:
        string = input()
        n = int(string.split(' ', 1)[0])
        k = int(string.split(' ', 1)[1])
        if n >= 2 and k <= n-1:
            print('YES')
        else:
            print('NO')

    except Exception as e:
        break