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

using namespace std;
using ll =  long long;

//#define cout (cout << setprecision(12))

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

    if (N % 10 == 7) {
        cout << "Yes" << endl;
        return 0;
    }
    N /= 10;
    if (N % 10 == 7) {
        cout << "Yes" << endl;
        return 0;
    }
    N /= 10;
    if (N % 10 == 7) {
        cout << "Yes" << endl;
        return 0;
    }
    N /= 10;
    cout << "No" << endl;
}