#include<iostream>
#include<string>
using namespace  std;

int main() {
	int n;

	cin >> n;

	if (n -n%100 ==700) {
		cout << "Yes";
			return 0;
	}

	if (n%100-n%10 == 70) {
		cout << "Yes";
		return 0;
	}
	if (n%10 == 7) {
		cout << "Yes";
		return 0;
	}

	cout << "No";


}