#include <bits/stdc++.h>
using namespace std;

void solve() {
    string N;
    cin >> N;
    bool ok = false;
    for (int i = 0; i < 3; ++i) {
        ok = N[i] == '7';
    }
    cout << (ok ? "Yes" : "No") << endl;
}

int main() {
    solve();
    return 0;
}
