#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,count=0,r;
    cin>>n;
    if(n>=100&&n<=999)
    {
    	stat:
    	if(n>0)
        {
        	r=n%10;
        	{
    	    	if(r==7)
    		    cout<<"Yes";
    		    else
    		    {
    	         n=n/10;
     		     goto stat;
	    	    }
	    	}
    	}
    	else
    	cout<<"No";
    }
}