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

int main(){
    int n;
    cin >> n;
    int a, b, c;
    a = n/100;
    b = (n-100*a) / 10;
    c = (n-100*a-10*b);
    if(a == 7){
        cout << "Yes" << endl;
    }
    else if(b == 7){
        cout << "Yes" << endl;
    }
    else if(c == 7){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
    return 0;
}
