#include<iostream>
#include<string>
#include<vector>
#include<queue>
#include<algorithm>
#include<map>
#include<set>
#include<cmath>
typedef long long ll;
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;
ll INF = 1000000007;

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