#include<bits/stdc++.h>
using namespace std;

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