import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

void main() {
    auto abx = readints;
    int a = abx[0], b = abx[1], x = abx[2];

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