#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <algorithm>
#include <queue>
using namespace std;
 
 
int main()
{
	int N;
 
	cin >> N;
 
	if(N/100 == 7){
		cout << "Yes";
	}else if((N/10)%10 == 7){
		cout << "Yes";
	}else if(N%10 == 7){
		cout << "Yes";
	}else{
		cout << "No";
	}
 
	return 0;
}