#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <map>
#include <cmath>
#include <bitset>
#include <iomanip>

using namespace std;

int main() {
    string N;
    cin >> N;

    bool contanins7 = false;
    for (int i = 0; i < 3; ++i) {
        if (N[i] == '7') {
            contanins7 = true;
            break;
        }
    }
    cout << (contanins7 ? "Yes" : "No") << endl;
    //cout << setprecision(15) << endl;
    return 0;
}
