#include<stdio.h>
#include<iostream>
#include<string.h>
#include<algorithm>
#include<queue>
#include<stack>
#include<math.h>
#include<map>
typedef long long int ll;
using namespace std;
#define maxn 0x3f3f3f3f
const ll o=1e18;
const int mm=1e6;
ll d[mm];
int main()
{
	ll n,m,i,j,k,kk,a,b,t,ss;
	cin>>n;
	m=n/10;
	a=n/100;
	if(m%10==7||n%10==7||a%10==7)
	printf("Yes\n");
	else
	printf("No\n");
 
}
