#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
string N;

void solve(){
    if(N.at(0) == '7' || N.at(1) == '7' || N.at(2) == '7'){
        cout << "Yes" << endl;
    }else {
        cout << "No" << endl;
    }
}

int main(){
    cin >> N;
    solve();
}   