#include<iostream>
using namespace std;

int main(void){
    int n, a, f;
    cin >> n;
    a = 10;
    f = 0;

    for(int i = 0; i < 3; ++i){
        if(n % a == 7)f = 1;
        n /= a;
    }
    if(f == 1)cout << "Yes" << endl;
    else cout << "No" << endl;
}