#include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
#define mp make_pair
#define mod 1000000007
#define INF 1e9+5
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define forn(i,a,b) for(int i=a;i<(int)b;i++)
#define ff first
#define ss second
#define int long long
ll min(ll a, ll b) {return a>b?b:a;}
ll max(ll a, ll b) {return a>b?a:b;}
int32_t main()
{
    IOS;
    int n;
    cin>>n;
    int flag=0;
    while(n)
    {
        if(n%10==7)
            flag=1;
        n/=10;
    }
    if(flag==1)
        cout<<"Yes\n";
    else
        cout<<"No\n";
    return 0;
}