#include <bits/stdc++.h>
using namespace std;
#define fast ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ll  long long
#define all(v) (v.begin(),v.end())
#define ff first
#define ss second
const ll maxn=2e5+10;
const ll mod=998244353;


int main() {
  	fast;
  	int n,flag=0,d;
  	cin>>n;
  	while(n>0)
  	{
  		d=n%10;
		  n/=10;
		  if(d==7)
		  	flag=1;	
	}
	if(flag)
	cout<<"Yes";
	else
	cout<<"No";
  	
}