#include<bits/stdc++.h>
#define ll long long 
#define P pair<int,int>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;

int main(){
    string n;
    cin >> n;
    bool ok = false;
    rep(i,3){
        if(n[i]=='7') ok = true;
    }
    cout << (ok ? "Yes" : "No") << endl; 
    return 0;
}