import std.algorithm;
import std.array;
import std.conv;
import std.stdio;
 
void main()
{
    string n;
    
    n = readln;
    
    if (
        n[0..1] == "7"
        || n[1..2] == "7"
        || n[2..3] == "7"
    ) {
        writeln("Yes");
    } else {
        writeln("No");
    }
}
