#include<bits/stdc++.h>
#define ll long long int
#define li long int
#define ull unsigned long long int
#define rep(i,a,b) for(i=a;i<b;i++)
#define db double
#define MOD 1000000007
#define MAX 1000001
#define pb push_back
#define mp make_pair
#define nl "\n"
using namespace std;
int main(int argc, char const *argv[]) {
    string str;
    cin>>str;
    int i;
    rep(i,0,3)
    {
        if(str[i]=='7')
        {
            cout<<"Yes"<<nl;
            break;
        }
    }
    if(i==3)
        cout<<"No"<<nl;
}
