def main(N, K):
    if K * 2 - 1 <= N:
        return 'YES'
    else:
        return 'NO'


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


if __name__ == '__main__':
    N, K = map(int, input().split(' '))
    print(main(N, K))
