import std.stdio,
       std.string,
       std.conv,
       std.algorithm;

void main() {
  int[] buf = readln.chomp.split.to!(int[]);
  int a = buf[0], b = buf[1], x = buf[2];

  if (a == x || a < x && a + b >= x) {
    writeln("YES");
  }
  else {
    writeln("NO");
  }
}
