#include<iostream>
#include<string>

using namespace std;

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

    if (N.find('7') != std::string::npos) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
}