#include<bits/stdc++.h>
#define rep(i,n) for(ll i=0;i<(n);i++)
#define ll long long
using namespace std;
int main(){
    int n;
    cin >> n;
    if(n%10 != 7 && (n/10)%10 != 7 && (n/100)%10 != 7 )
        cout << "No" << endl;
    else 
        cout << "Yes" << endl;
    return 0;
}
