#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vl = vector<ll>;

int main(){
    string S;
    cin >> S;
    //cout << S[2] << endl;
    bool ans = 0;
    for(int i = 0; i < 3; i++){
        if(S[i] == '7'){
            ans = 1;
        }
    }
    if(ans){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
    return 0;
}