#include <iostream>
using namespace std;

int main() {
	int n;
	cin >> n;

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

	cout << "No" << endl;
	return 0;
}