def main():

    A = [int(i) for i in input().split()]

    if abs(A[0] - A[2]) <= A[3] or (abs(A[0] - A[1]) <= A[3] and abs(A[1] - A[2]) <= A[3]):

        print("Yes")

    else:

        print("No")





if __name__ == '__main__':

    main()

def main():

    a, b, c, d = (int(i) for i in input().split())

    if abs(a-c) <= d or (abs(a-b) <= d and abs(b-c) <= d):

        print("Yes")

    else:

        print("No")





if __name__ == '__main__':

    main()

def main():
    A = [int(i) for i in input().split()]
    if abs(A[0] - A[2]) <= A[3] or (
        abs(A[0] - A[1]) <= A[3] and abs(A[1] - A[2]) <= A[3]
    ):
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

def main():
    a, b, c, d = (int(i) for i in input().split())
    if abs(a - c) <= d or (abs(a - b) <= d and abs(b - c) <= d):
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

-    A = [int(i) for i in input().split()] -    if abs(A[0] - A[2]) <= A[3] or ( -        abs(A[0] - A[1]) <= A[3] and abs(A[1] - A[2]) <= A[3] -    ): +    a, b, c, d = (int(i) for i in input().split()) +    if abs(a - c) <= d or (abs(a - b) <= d and abs(b - c) <= d):