#include <bits/stdc++.h>
using namespace std;
#define all(c) c.begin(),c.end()
#define init(c) memset(c,0,sizeof c)
typedef long long ll;
const int N=20000005;
int n,k,x,t,a,b;
string s;
vector<int>v;
int main(){

	cin >> n;
	while(n){
		if(n%10 == 7){
			cout << "Yes";
			return 0;
		}
		n/=10;
	}
	cout << "No";
	return 0;
}