// Created by arvybhatt

#include <bits/stdc++.h>
#define fast ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define F first
#define S second
#define p_b push_back
#define m_p make_pair
#define rep(i,n) for(int i=0;i<(n);++i)
#define repA(i,a,n) for(int i=a;i<=(n);++i)
#define repD(i,a,n) for(int i=a;i>=(n);--i)

using namespace std;
using ll = long long;

int main()
{
    fast;
    int n;cin>>n;
    while(n)
    {
    	int x=n%10;
    	if(x==7)
    	{
    		cout<<"Yes"<<"\n";
    		return 0;
    	}
    	x=x/10;
    }

    cout<<"No";
    return 0;
    
    return 0;
}
