def main():

    # 1.input

    a,b,c,d = list(map(int, input().split()))

    

    

    #2. judge

    if abs(a-c) <= d:

        print("Yes")

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

        print("Yes")

    else:

        print("No")





if __name__ == "__main__":

    main()
a,b,c,d = list(map(int, input().split()))



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

    print("Yes")

else:

    print("No")
def main():
    # 1.input
    a, b, c, d = list(map(int, input().split()))
    # 2. judge
    if abs(a - c) <= d:
        print("Yes")
    elif abs(a - b) <= d and abs(b - c) <= d:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

a, b, c, d = list(map(int, input().split()))
if abs(c - a) <= d or (abs(b - a) <= d and abs(c - b) <= d):
    print("Yes")
else:
    print("No")

-def main(): -    # 1.input -    a, b, c, d = list(map(int, input().split())) -    # 2. judge -    if abs(a - c) <= d: -        print("Yes") -    elif abs(a - b) <= d and abs(b - c) <= d: -        print("Yes") -    else: -        print("No") - - -if __name__ == "__main__": -    main() +a, b, c, d = list(map(int, input().split())) +if abs(c - a) <= d or (abs(b - a) <= d and abs(c - b) <= d): +    print("Yes") +else: +    print("No")