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


int main() {
	string s;
	cin >> s;

	bool svn=false;
	for (int i=0; i<3; i++) {
		if (s[i]=='7') svn=true;
	}
	if (svn) cout << "Yes" << endl;
	else cout << "No" <<endl;
}
