#include <bits/stdc++.h>

using namespace std;

int main(){
    int a,b,c,n;
    cin >> n;
    a = n/100;
    b = (n%100)/10;
    c = (n%10);

    if(a==7||b==7||c==7){
        cout << "Yes" <<endl;
    }else {
        cout << "No";
    }

}