#include <bits/stdc++.h>

using namespace std;

void solve() {
    string s;
    cin >> s;
    for (auto& x : s) {
        if (x == '7') {
            cout << "Yes";
            return;
        }
    }
    cout << "No";
}

int main() {
    ios::sync_with_stdio(NULL), cin.tie(0), cout.tie(0);
    cout.setf(ios::fixed), cout.precision(20);

    solve();
}
