#include <bits/stdc++.h>

#define endl '\n'

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    string number;
    cin >> number;
    if(number.find("7") != string::npos)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
    return 0;
}