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

int main(){
    int n,hyaku,ju,ichi;

    // ページ数
    cin >> n;

    hyaku = n/100;
    ju = (n-hyaku*100)/10;
    ichi = n-hyaku*100-ju*10;
    if((hyaku==7)||(ju==7)||(ichi==7)){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}