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

int main(){
    string n;
    cin >> n;
    if(n.find('7') != string::npos){
        cout << "Yes" << endl;
    }
    else
        cout << "No" << endl;
}