unittest
{
	assert( [ "5 5 7" ].parse.expand.solve == "YES" );
	assert( [ "7 7 5" ].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 )
{
	return abc.sort().equal( [ 5, 5, 7 ] ) ? "YES" : "NO";
}
