#include<cstdio>
#include<algorithm>
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
    string ss;
    cin>>ss;
    if(ss[0]=='7'||ss[1]=='7'||ss[2]=='7')
        puts("Yes");
    else puts("No");
    return 0;
}
