unittest
{
	assert( [ "3 5 4" ].parse.expand.solve == "YES" );
	assert( [ "2 2 6" ].parse.expand.solve == "NO" );
	assert( [ "5 3 2" ].parse.expand.solve == "NO" );
}



import std.conv;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto abx = input.front.split.to!( long[] );
	
	return tuple( abx[ 0 ], abx[ 1 ], abx[ 2 ] );
}

auto solve( long a, long b, long x )
{
	return ( ( a <= x ) && ( x <= a + b ) ) ? "YES" : "NO";
}
