#include<bits/stdc++.h>
using namespace std;
#define ll long long
string s; 
int main()
{
   cin>>s;
   for(int i=0;i<3;i++) 
     {
     	if(s[i]=='7') 
     	{
     		cout<<"Yes";return 0;
		 }
	 }

cout<<"No";
return 0;
}
