#include<iostream>
#include <algorithm>
#include<iomanip>
#include<math.h>
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))
using namespace std;

int main()
{
	long N;
	cin >> N;
	if (N % 10 == 7)cout << "No" << endl;
	else if (N / 100 == 7)cout << "No" << endl;
	else if (N / 10 % 10 == 7)cout << "No" << endl;
	else cout << "Yes" << endl;
	return 0;
}