#include <bits/stdc++.h>
using namespace std;
#define LL long int
#define ULL unsigned long int
#define MOD (long int)10e9 + 7


int main(){
    string s;
    cin >> s;
    bool ans = false;
    for(int i = 0; i < 3; ++i){
        if(s[i] == '7'){
            ans = true;
        }
    }

    cout << (ans ? "Yes" : "No") << endl;


    return 0;
}