#include<cstring>
#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using ll = long long;
using namespace std;

int main() {
    string n;
    cin >> n;
    int cnt = 0;
    rep(i, 3) {
        if (n[i] == '7') ++cnt;
    }
    if (cnt > 0) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}