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

void main() {
    auto l = readln.chomp.split.map!(to!int).array;

    int a = l[0], b = l[1], x = l[2];

    for (int i = 0; i <= b; ++i) {
        if (a + i == x) {
            writeln("YES");
            return;
        }
    }

    writeln("NO");

    return;
}