#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const int INF = 0x3f3f3f3f;
const int N = 5000;
#define ll long long
int cmp(int a,int b){
	return a>b;
}	

int main(){
	int  n;
	cin >> n;
	if(n%10 == 7 || n/10%10 ==7 || n/100==7) {
		cout <<"Yes"<<endl;
	}else{
		cout <<"No"<<endl;
	}
	return 0;
}

