#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
 
int main(){
    string N;
    cin >> N;
    rep(i, N.length()){
        if(N[i] == '7'){
            cout << "Yes" << endl;
            return 0;
        }

    }
    cout << "No" << endl;

    return 0;
}