#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
// Welcome to my source code!

int main() {
    string s;
    cin >> s;
    bool flag = false;
    if (s[0] == '7' || s[1] == '7' || s[2] == '7') flag = true;
    if (flag) cout << "Yes" << endl;
    else cout << "No" << endl;
}