/*786*/
#include <bits/stdc++.h>

#define pu ios_base::sync_with_stdio();cin.tie(NULL);cout.tie(NULL);

#define ll                  long long
#define yes                 cout<<"YES"<<endl
#define no                  cout<<"NO"<<endl
#define sp                  ' '
#define vi                  vector<int>
#define vl                  vector<ll>
#define pb                  push_back
#define mp                  make_pair
#define f(i,n)              for(i=0;i<n;i++)
#define stop                return 0;
#define new                 cout<<endl
#define res(x)              cout<<x<<endl;
#define vip                 vector<pair<int,int> >
#define srt(v)              sort(v.begin(),v.end());
#define test                int t;cin>>t;while(t--)
#define mx(a)               *max_element(a,a+n)

using namespace std;
int main()
{
    pu;
   string s;
   cin>>s;
   int f=s.find_first_of('7');
   if(f>=0)yes;
   else no;
        stop;
}
