//code_sm
#include<bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define si set<int>
#define ll long long
#define pb push_back
int main()
{
	int n;
	cin>>n;
	if(n%10==7||n%100==7||n%1000==7)
	cout<<"Yes";
	else
	cout<<"No";
}