#include <iostream>
#include<string>
#include<time.h>
#include<math.h>
#include<stdlib.h>
#include<map>
using namespace std;

int main() {
	int N;
	cin >> N;
	int a, b, c, d,e;
	a = N % 100;
	b = N % 10;
	c = a - b;
	d = N - a ;
	e = a - b;
	if (e == 70 || b == 7 || d== 700) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}