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

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

    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 (a - c) ** 2 <= d**2 or ((a - b) ** 2 <= d**2 and (b - c) ** 2 <= d**2):
    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"))

-if (a - c) ** 2 <= d**2 or ((a - b) ** 2 <= d**2 and (b - c) ** 2 <= d**2): -    print("Yes") -else: -    print("No") +print(("Yes" if abs(a - c) <= d or (abs(a - b) <= d and abs(b - c) <= d) else "No"))