#include <bits/stdc++.h>

using namespace std;

int main(){
	int n;
	bool sol = false;
	cin >> n;
	while(n){
		int prev = n;
		int k = n%10;
		if(k == 7)
			sol = true;
		n /=10;
		
	}
	if(sol)
		cout << "Yes" <<'\n';
	else 
		cout << "No" << '\n';
}
