#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define vec vector<ll>
#define rev(a); reverse(a.begin(), a.end());
#define sorta(a); sort(a.begin(), a.end());
#define sortd(a); sort(a.begin(), a.end(), greater<int>());
#define FOR(i,a,b) for (ll i = (ll)(a); i < (b); i++)
#define ROF(i,a,b) for (ll i = (ll)(b)-1; i >= (a); i--)
#define printarray(a) FOR(Q,0,(int)(a).size()) cout<<(a)[Q]<<" "; cout<<'\n';
#define pb push_back
#define mp make_pair

ll MOD = 1000000007;
ll INF = 1LL << 60;

/*****************************************************************************/


void solve() {
	
}

int main() {
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	string s;cin>>s;
	int n=s.length();
	bool good=false;
	FOR(i,0,n) {
		if (s[i]=='7') good=true;
	}
	if (good) {
		cout<<"Yes";
	} else {
		cout<<"No";
	}
}
