#include<iostream>
#include<vector>
#include<string>

using namespace std;

int main()
{
    string s;cin>>s;
    if(s.find('7')!=string::npos)cout<<"Yes";
    else cout<<"No";
    cout<<endl;
    return 0;
}

