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

int main(){
    string s;
    cin >> s;
    rep(i,3){
        if(s[i] == '7'){
            cout << "Yes" << endl; 
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}