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

int main(){
	string a;
	bool answer = false;
	cin >> a;
	for(int i = 0;i<(int)a.size();i++){
		if(a[i]=='7') {
			answer = true;
			break;
		}
	}
	answer ? printf("Yes\n") : printf("No\n");
	return 0;
}
