#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define in insert
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int INF = 1e9 + 5;
const int mod = 1e9 + 7;
const int  N = 2e5 + 314;
void solve(){
    int n;
    cin>>n;
    while (n>0)
    {
        if(n%10==7){
            cout<<"Yes\n";
            return;
        }
        n/=10;
    }
    cout<<"No\n";
    return;
       
}
signed main(){
    speed;
    int t=1;
    //cin>>t;
    while(t--)solve();
}