//
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
#define vec vector 


void solve(){
    int n;
    cin >> n;
    while(n != 0){
        int pop = n % 10;
        if(pop == 7){
            cout << "YES" << endl;
            return;
        }
        n /= 10;
    }
    cout << "NO" << endl;
}

int main(){
    solve();
}

