import std.stdio, std.algorithm, std.string, std.conv, std.array, std.range, std.math;
int readint() { return readln.chomp.to!int; }
int[] readints() { return readln.split.to!(int[]); }


void main() {
    int a, b, x;
    readf("%d %d %d\n", &a, &b, &x);

    bool f = false;
    if (a > x) f = false;
    else if (a + b >= x) f = true;
    else f = false;

    writeln(f ? "YES" : "NO");

    auto _ = readln(); // dbg
}