#include <iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;
	bool suc = false;
	for (int i = 0; i < 3; i++) {
		if (n % 10 == 7) {
			suc = true;
		}
		n /= 10;
	}
	cout << (suc ? "Yes" : "No") << endl;
	return 0;
}