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

int main()
{
	int num=0,a=0,b=0,c=0;
	cin>>num;

    a = num/100;  
    b = (num-a*100)/10; 
	c = num-a*100-b*10;
	if(a==7||b==7||c==7)
	cout<<"Yes";
	else
	cout<<"No";
	
	return 0;
}