#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define stop exit(0)
#define dd double
#define po pop_back
#define pb push_back
#define ub upper_bound
#define lb lower_bound
int main(){
    vector <long long> v;
    ll a,b,c,d=0,e=0,f=0,g=0,i,j,k=1,l=1,r=1,n,m[300001],z[400001],h[600001],p[600001];
    string s,t,x[1001],y[1001];
    dd q,u,w;
    cin>>s;
    for(i=0;i<s.size();i++){
        if(s[i]=='7'){
            cout<<"Yes";
            stop;
        }
    }
    cout<<"No";
}