#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <map>
using namespace std;
//typedef __int64 LL;
typedef vector<int> ivec;
typedef vector<string> svec;

//int a[100010];
int main(){
	string str;
	cin>>str;
	if(str.find("7")!=string::npos)cout<<"YES"<<endl;
	else cout<<"NO"<<endl;
} 
