#include<iostream>
#include <cmath>
#include<cstdio>
#include <string>
#include <cwchar>
#include <stdio.h>
#include <ctype.h>
using namespace std;
int main(){
string s;
cin>>s;
for(int i=0;i<s.length();i++)
{
	int a=s[i]-'0';
	if(a==7)
	{
		cout<<"YES"<<endl;
		return 0;
	}
}
    cout<<"NO"<<endl;
    return 0;
}