#include <bits/stdc++.h>
using namespace std;
int main() {
    int N;
    cin >> N;

    int hP = N / 100;
    int tP = (N - (hP * 100)) / 10;
    int oP = N - (hP * 100 + tP * 10);

    if (hP == 7 || tP == 7 || oP == 7) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
}
