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.
a,b,c=map(int,input().split(" "))
print("Yes") if a<=c and a+b>=c else print("No")
a,b,c=map(int,input().split(" "))
print("YES") if a<=c and a+b>=c else print("NO")