#include <cstdio>
#include <cmath>
#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <algorithm>
#include <queue>
using namespace std;
typedef long long ll;

int main() {
	int n, o, t, h;
	cin >> n;
	o = n % 10;
	t = (n % 100 - o) / 10;
	h = n / 100;
	if (o == 7 || t == 7 || h == 7) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	return 0;
}