#include<bits/stdc++.h>

using namespace std;
typedef long long ll;

int main() {
    string s;
    cin >> s;
    bool yes = false;
    for (auto c : s) {
        if (c == '7') yes = true;
    }
    if (yes) cout << "Yes\n";
    else cout << "No\n";
}
