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

print(('Yes' if abs(c - a) <= d or abs(b - a) <= d and abs(c - b) <= d else 'No'))
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')
a, b, c, d = list(map(int, input().split()))
print(("Yes" if abs(c - a) <= d or abs(b - a) <= d and abs(c - b) <= d else "No"))

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")

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