using namespace std;

#include <cstdint>
//#include <cstring>
//#include <cmath>
#include <string>
#include <iostream>
//#include <vector>
//#include <algorithm>
//#include <queue>
//#include <stack>

int main(
){
    cin.tie(0);
    ios::sync_with_stdio(false);

    string  N;
    int     n = 0;
    cin >> N;
    int     cnt = 0;
    string  ans;
    for(n = 0; n < N.size(); n++){
        if(N.substr(n,1).compare("7") != 0){
            cnt++;
        }
    }
    if(cnt == N.size()){
        ans = "No";
    }else{
        ans = "Yes";
    }


    cout << ans << "\n";
    return 0;
    
}
