data = eval(input())

data1,data2,data3,data4 = data.split()

data1 = int(data1)

data2 = int(data2)

data3 = int(data3)

data4 = int(data4)





if abs(data1 - data3) <= data4:

    print('Yes')

elif abs(data1 - data2) <= data4 and abs(data2 - data3) <= data4:

    print('Yes')

else:

    print('No')
data_a,data_b,data_c,data_d = [int(x) for x in input().split()]





length_1 = abs(data_a - data_b)

length_2 = abs(data_b - data_c)

length_3 = abs(data_a - data_c)



if length_3 <= data_d:

    print('Yes')

elif length_1 <= data_d and length_2 <= data_d:

    print('Yes')

else:

    print('No')
data = eval(input())
data1, data2, data3, data4 = data.split()
data1 = int(data1)
data2 = int(data2)
data3 = int(data3)
data4 = int(data4)
if abs(data1 - data3) <= data4:
    print("Yes")
elif abs(data1 - data2) <= data4 and abs(data2 - data3) <= data4:
    print("Yes")
else:
    print("No")

data_a, data_b, data_c, data_d = [int(x) for x in input().split()]
length_1 = abs(data_a - data_b)
length_2 = abs(data_b - data_c)
length_3 = abs(data_a - data_c)
if length_3 <= data_d:
    print("Yes")
elif length_1 <= data_d and length_2 <= data_d:
    print("Yes")
else:
    print("No")

-data = eval(input()) -data1, data2, data3, data4 = data.split() -data1 = int(data1) -data2 = int(data2) -data3 = int(data3) -data4 = int(data4) -if abs(data1 - data3) <= data4: +data_a, data_b, data_c, data_d = [int(x) for x in input().split()] +length_1 = abs(data_a - data_b) +length_2 = abs(data_b - data_c) +length_3 = abs(data_a - data_c) +if length_3 <= data_d: -elif abs(data1 - data2) <= data4 and abs(data2 - data3) <= data4: +elif length_1 <= data_d and length_2 <= data_d: