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

int main() { //a
    int n;
    cin >> n;
    string s = to_string(n);
    for(int i = 0; i < 3; i++) {
        if(s.at(i) == '7'){
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
}