#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i < (n);++i)
using namespace std;
using ll = long long; 
using P = pair<int,int>;

template <class _T> inline bool chmax (_T& a,_T b){if(a<b){a=b;return true;}return false;}
template <class _T> inline bool chmin (_T& a,_T b){if(a>b){a=b;return true;}return false;}

const long long INF = 1LL << 60;


int main(void){
	int n;cin >> n;
	while(n>0){
		int a;
		a = n%10;
		if(a==7){
			cout << "Yes" << endl;
			return 0;
		}
		n /= 10; 
	}
	cout << "No" << endl;
	return 0;
}

