/*mokosucio's file*/
#include <bits/stdc++.h>

using namespace std;

#define pb push_back
#define fs first
#define sc second
#define forn(i, n) for (ll i = 0; i < (ll) (n); ++i)
#define IO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)

using ll = long long;
const ll inf = 1e9+5; 

const double PI =  3.14159265;

int main(){
	IO;
	string n;
	cin>>n;
	bool seven = false;
	forn(i,2){
		if(n[i]=='7') seven = true;
	}

	(seven)?cout<<"Yes\n":cout<<"No\n";
	return 0;
}

