#include <bits/stdc++.h>
#define LL long long
#define PII pair<int,int>
#define PIII pair<int,PII>
#define PLL pair<LL,LL>
#define PLII pair<LL,PII>
#define VI vector<int>
#define FF first
#define SS second
#define MP make_pair
#define PB push_back
#define MX 2010
#define EPS 0.00000000001
#define MOD 1000000007
#define PI acos(-1)
#define INF 100000000
#define loop(i,b,n) for(int i=b;i<n;++i)
#define rev_loop(i,b,n) for(int i=b;i>=n;--i)
using namespace std;

int main()
{
    //ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);

    string n;
    cin>>n;
    int ans = 0;
    loop(i,0,3) if(n[i] == '7') {ans = 1; break;}
    if(ans) cout<<"Yes\n";
    else cout<<"No\n";

    return 0;
}
