function Main(input) {
    input = input.split(' ');
    var A = Number(input[0]);
    var B = Number(input[1]);
    var X = Number(input[2]);

    if (A == X) {
        console.log('YES');
        return;
    }
    if (A > X) {
        console.log('NO');
    }
    else {
        if (A + B >= X)
            console.log('YES');
        else
            console.log('NO');
    }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));