/**
 *   author: sahushivam
 *   created: 12 April 2020 (Sunday)  17:28:40
**/
#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF 1e18
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define int long long

void solve(){
    string s;
    cin>>s;
    for(int i:s)
    {
        if(i=='7')
        {
            cout<<"Yes";
            return;
        }
    }
    cout<<"No";
}

signed main(){
    ios_base::sync_with_stdio(false); 
    cin.tie(NULL); 
    int t=1; while(t--) solve();
    return 0;
}