#include<iostream>
#include<cstdio>
#include<algorithm>
#include<vector>
#include<cstring>
#include<string>
using namespace std;
bool solve(int n){
	while(n){
		if(n%10==7){
			return true;
		}
		n=n/10;
	}
	return false;
}
int main(){
	int n;
	cin>>n;
	if(solve(n)){
		cout<<"YES"<<endl;
	}else{
		cout<<"NO"<<endl;
	}
	return 0;
}