#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define vi vector<int>
#define vii vector<int, int>
#define po pop_back
#define hell 1000000007
using namespace std;

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

int main(){
	int t = 1;
	//cin>>t;
	while(t--){
		solve();
	}
}