#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <stack>
#include <algorithm>
#include <iostream>
#include <string>
#include <map>
#include <iterator>
#include <iostream>
#include <sstream>
#include <iterator>
#include <numeric>

using namespace std;


int main() {

    string S;
    cin >> S;

    bool ok = false;
    for (int i = 0; i < S.size(); ++i) {
        if (S[i] == '7') {
            ok = true;
            break;
        }
    }

    if(ok) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }



    return 0;

}