#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll INF = 999999999;



int main()
{
     
    
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    
    string s;
    cin>>s;
    for(i=0;i<s.length();i++)
    {
        if(s[i]=='7')
        {
            cout<<"Yes"<<endl;
            return 0;
        }
        
    }
    cout<<"No"<<endl;
    return 0;
}