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

typedef long long ll;
#define fio() cin.tie(0); ios::sync_with_stdio(false);
#define rep(i,n) for(int i=0;i<(n);i++)
#define Sp(p) cout<<setprecision(25)<< fixed<<p<<endl;
#define nl cout<<endl;
#define pu push
#define pb push_back
//str.substr(pos,number)
//str.insert(str.begin()+5,'3')
//set<int> myset
//myset.insert(num)
//myset.count(i)!=0
const int maxn = 2e5 + 5;
int main(){
    fio();
	int num;
	bool ans=false;
	cin>>num;
	for(int i=0;i<3;i++){
		if(num%10 == 7){
			ans = true;
			break;
		}
		num /=10;
	}
	if(ans)
		cout<<"Yes"<<endl;
	else
		cout<<"No"<<endl;
}












