#include<iostream>
#include<iomanip>
#include<cassert>
#include<math.h>
#include<complex>
#include<algorithm>
#include<utility>
#include<queue>
#include<string.h>
#include<string>
#include<set>
#include<map>
#include<unordered_map>
#include<functional>
#include<vector>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
const ll INF=2e18;
const ll MOD=1e9+7;

string N;
int main(){
    cin>>N;
    for(ll i=0;i<3;i++){
        if(N[i]=='7'){
            cout<<"Yes";
            return 0;
        }
    }
    cout<<"No";

    return 0;
}