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

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

    print("Yes")

else:

    print("No")
A,B,C,D = list(map(int,input().split()))

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

A, B, C, D = list(map(int, input().split()))
print(("Yes" if abs(A - C) <= D or abs(A - B) <= D and abs(B - C) <= D else "No"))

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