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


int main (){
    int N;
    cin >> N;
    int x1=N/100;
    int x2=(N-x1*100)/10;
    int x3=N-100*x1-10*x2;
    if(x1==7 || x2==7 || x3==7){
        cout << "Yes"<< endl;
    }
    else{
    cout << "No" << endl;
    }
}
