#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
//#define INF (1LL<<31)-1
//#define MOD 998244353
#define MOD 1000000007

int main(){
    string s;
    cin>>s;
    bool f=1;
    rep(i,0,3){
        if(s[i]=='7'){
            f=0;
            cout<<"Yes\n";
            break;
        }
    }
    if(f)cout<<"No\n";
}