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

int main(){
    ll a;
    cin>>a;
    if(a/100==7 || a%100/10==7 || a%10==7)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}
