///بِسْمِ الّٰلهِ الرَّحْمٰنِ الرَحِيْمِ
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pi acos(-1.0)
int main()
{
     ios_base::sync_with_stdio(false);cin.tie(NULL);
     int i,n,t,p=INT_MAX,j=0,x,a=0,b,l=0,r=0,y,k,c,sum=0,m,d;
     string s;
     cin>>s;
     for(i=0;i<s.size();i++){
        if(s[i]=='7'){
            l=1;
        }
     }
     (l==1)?cout<<"Yes"<<endl:cout<<"No"<<endl;

     return EXIT_SUCCESS;
}

