import sys

input = sys.stdin.readline


def main():
    N, K = map(int, input().split())

    if 1 + (K - 1) * 2 <= N:
        ans = "YES"
    else:
        ans = "NO"

    print(ans)


if __name__ == "__main__":
    main() import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline def main():
    N, K = map(int, input().split())

    if 1 + (K - 1) * 2 <= N:
        ans = "YES"
    else:
        ans = "NO"

    print(ans) main N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K if 1 + (K - 1) * 2 <= N:
        ans = "YES"
    else:
        ans = "NO"

     1 + (K - 1) * 2 <= N 1 + (K - 1) * 2 1 (K - 1) * 2 K - 1 K 1 2 N ans = "YES" ans "YES" ans = "NO" ans "NO" print(ans) print ans if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main input = sys.stdin.readline sys.stdin.readline input def main():
    N, K = map(int, input().split())

    if 1 + (K - 1) * 2 <= N:
        ans = "YES"
    else:
        ans = "NO"

    print(ans) def main():
    N, K = map(int, input().split())

    if 1 + (K - 1) * 2 <= N:
        ans = "YES"
    else:
        ans = "NO"

    print(ans) main
import sys

input = sys.stdin.readline


def main():
    N, K = map(int, input().split())

    if 1 + (K - 1) * 2 <= N:
        ans = "YES"
    else:
        ans = "NO"

    print(ans)


if __name__ == "__main__":
    main()
