#include <bits/stdc++.h>
using namespace std;

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);

	string s;
	cin >> s;

	bool seven = false;
	for (int i = 0; i < s.size(); ++i) {
		if (s[i] == '7') seven = true;
	}

	if (seven)
		cout << "YES";
	else
		cout << "NO";
}
