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

#define int long long
#define ll long long 
#define f(i,l,n) for(int i=l;i<n;i++)
#define E "\n"
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define MAX 1e18
#define float long double

const int N=1e5+3;
int sol()
{
	int n;
	cin >> n;
	while(n!=0)
	{
		if(n%10==7) return cout<<"Yes\n",0;
		n/=10;
	}
	cout<<"No\n";
}




int32_t main()
{

 sol();
}


