#include<algorithm>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<cstdio>
#include<iomanip>
#include<cmath>
using namespace std;

int main(){
//    cout << fixed << setprecision(10);
    int N;
    cin >> N;
    
    bool hasSeven = false;
    
    while (N > 0) {
        hasSeven |= (7 == N % 10);
        N /= 10;
    }
    
    cout << (hasSeven ? "Yes" : "No");
    return 0;
}
