unittest
{
	assert( [ "3 8 5" ].parse.expand.solve == "Yes" );
	assert( [ "7 3 1" ].parse.expand.solve == "No" );
	assert( [ "10 2 4" ].parse.expand.solve == "Yes" );
	assert( [ "31 41 59" ].parse.expand.solve == "No" );
}



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

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

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

auto solve( long[] abc )
{
	auto s = abc.dup.sort();
	return ( abc[ 2 ] == s[ 1 ] ) ? "Yes" : "No";
}
