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



if x <= a + b and x >= a:

  print('YES')

else:

  print('NO')
a, b, x = list(map(int, input().split()))

print(('YES' if a <= x <= a + b else 'NO'))
a, b, x = list(map(int, input().split()))
if x <= a + b and x >= a:
    print("YES")
else:
    print("NO")

a, b, x = list(map(int, input().split()))
print(("YES" if a <= x <= a + b else "NO"))

-if x <= a + b and x >= a: -    print("YES") -else: -    print("NO") +print(("YES" if a <= x <= a + b else "NO"))