#include <bits/stdc++.h>

using namespace std;

#define int long long

void solve() {
    int n;
    cin >> n;
    if (n % 10 == 7) {
        cout << "Yes";
        return;
    }
    n /= 10;

    if (n % 10 == 7) {
        cout << "Yes";
        return;
    }
    n /= 10;

    if (n % 10 == 7) {
        cout << "Yes";
        return;
    }
    n /= 10;
    cout << "No";
}

signed main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    solve();
    return 0;
}
