#include <bits/stdc++.h>
#define ll long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

using namespace std;

//#define DEBUG

#ifdef DEBUG
#define PRINT(A) std::cout << (#A) << ":" << (A) << std::endl;
#else
#define PRINT(A)
#endif

int main() {
    ll N; cin >> N;
    if(N%10 == 7 || N/10%10 == 7 || N/100%10 ==7){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
    
}
