#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
int main(){
    string n;
    cin >> n;
    bool hantei = false;
    rep(i,3){
        if(n.at(i) == '7') hantei =true;
    }
    if(hantei) cout << "Yes" << endl;
    else   cout << "No" << endl;
}