There are a total of A + B cats and dogs. Among them, A are known to be cats, but the remaining B are not known to be either cats or dogs.  Determine if it is possible that there are exactly X cats among these A + B animals.
abx = list(map(int,input().split()))
if abx[2] >= abx[0] and abx[0] + abx[1] >= abx[2]:
    print("Yes")
else:
    print("No")
abx = list(map(int,input().split()))
a = abx[0]
b = abx[1]
x = abx[2]
if a + b >= x and a <= x:
    print("YES")
else:
    print("NO")