#include<iostream>
#include<algorithm>
#define rep(i, n) for(int i=0; i<n; i++)
using namespace std;

int main(){
    int N; cin >> N;
    rep(i, 3){
        int a = N%10;
        N /= 10;
        if(a == 7){
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
}