#include <bits/stdc++.h>
#define all(v) (v).begin(), (v).end()
#define INF 1e9
#define pb push_back
using namespace std;
typedef long long ll;
using pii = pair<ll, ll>;

int main() {
    string S;
    cin >> S;
    if(S.find("7") == string::npos) {
        cout << "No" << endl;
    }else cout << "Yes" << endl;
    
}