#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int mod=1e9+7;
ll power(ll a,ll b){
    ll res=1;
    while(b){
        if(b&1)res=res*a%mod;
        b>>=1;
        a=a*a%mod;
    }
    return res;
}
ll inv(ll x){
    return power(x,mod-2);
}
int main(){
    ll t,i;
    string s;
    cin>>s;
    for(i=0;i<3;i++)if(s[i]=='7'){cout<<"Yes";return 0;}
    cout<<"No";
}
