#include<bits/stdc++.h>
using namespace std;
typedef long long       ll;
typedef pair<int,int>   ii;
typedef vector<int>     vi;
typedef vector<ii>      vii;
typedef set<int>        si;
typedef set<ii>         sii;

#define all(x) x.begin(), x.end()
#define clr(x,v) memset(x,v,sizeof x)
#define pb push_back
#define x first
#define y second
#define endl "\n"
#define MOD int(1e9+7)
#define N 200123
int n;
string t;
int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    cin >> t;
    if(t[0]=='7'||t[1]=='7'||t[2]=='7')cout<<"YES"<<endl;
    else cout << "NO" << endl;
}
