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

int main()
{
	int num,a,b,c;
	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;
 }