#define fast ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)
#define mem(dp,i) memset(dp,i,sizeof(dp))
#define all(x) begin(x),end(x)
#define pii pair<int,int>
#include <bits/stdc++.h>
#define pll pair<ll,ll>
#define vll vector<ll>
#define vi vector<int>
#define ld long double
#define ll long long
#define pb push_back
#define mid (l+r)/2
#define S second
#define F first
using namespace std;
//const int inf = 2e9+9;
const int mod = 1e9+7;
string s;
int main(){
    fast,cin>>s;
    if(s[0] == '7' || s[1] == '7' || s[2] == '7'){
        cout<<"Yes"<<endl;
    }
    else cout<<"No"<<endl;
}