#include<bits/stdc++.h>
using namespace std;
#define ll  long long
#define ld  long double
#define endl '\n'
#define FAST ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const ll MOD = 1e9 + 7;
const double PI = 3.141592653589793238463;
const int MAXN = 2e5 + 5;



int main()
{
    FAST
    string h;
    cin>>h;
    if(h[0]=='7' ||h[1]=='7' ||h[2]=='7' )
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;


    return 0;
}
