#include<iostream>
#include<algorithm>
#include<string>
#include<iomanip>
#include<vector>
#include<cmath>
#include<utility>


using namespace std;

void eslam()

{
	ios_base::sync_with_stdio;
	cin.tie(0);
	cout.tie(0);
}

int main()


{

	eslam();

	string x;
	cin >> x;
	bool b = false;
	for (int i = 0; i < x.length(); i++)
	{
		if (x[i] == '7')
		{
			b = true;
			cout << "YES" << endl;
			break;
		}
	}
	if (b == false)
		cout << "NO" << endl;


}



