unittest
{
	assert( [ "117" ].parse.expand.solve == "Yes" );
	assert( [ "123" ].parse.expand.solve == "No" );
	assert( [ "777" ].parse.expand.solve == "Yes" );
}



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 n = input.front.to!( dchar[] );
	return tuple( n );
}

auto solve( dchar[] n )
{
	foreach( c; n )
	{
		if( c == '7' ) return "Yes";
	}
	return "No";
}
