//abc162_a.cpp
//Sun Apr 12 20:57:48 2020

#include <iostream>
#include <string>
#include <queue>
#include <map>
#include <unordered_map>
#include <vector>
#include <algorithm>
#include <math.h>
#include <set>
#define INTINF 2147483647
#define LLINF 9223372036854775807
#define MOD 1000000007

using namespace std;
using ll=long long;
typedef pair<int,int> P;

int main(){
	string s;
	cin >> s;

	if (s[0]=='7' ||s[1]=='7' ||s[2]=='7'){
		cout << "Yes"<< endl;
	}else {
		cout << "No"<< endl;
	}
//	printf("%.4f\n",ans);
}