#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    //vector<int> a(n);
    //for (int i  = 0; i < n; i++) cin >> a.at(i);
//
    //bool can = false;
    //for (int i = 0; i < n; i++) {
    //    if (a.at(i) == 7) can = true;
    //}
    //if (can) cout << "Yes" << endl;
    //else cout << "No" << endl;
    cin >> n;
    bool can = false;
    int a = n / 100;
    n %= 100;
    int b = n / 10;
    n %= 10;
    int c = n;
    //cout << a << b << c ;
    if (a == 7 || b == 7 || c == 7) cout << "Yes" << endl;
    else cout << "No" << endl;
}