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

#define lli long long int
#define st first
#define nd second
#define mp make_pair
#define pb push_back
#define INF 1000000007
#define endl "\n"

stirng a;

int main(){
	cin>>a;
	for(int i=0;i<a.size();i++){
		if(a[i]=='7'){
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
}