#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <sstream> //C++
#include <queue> //C++
#include <string> //C++
#include <iostream> //C++
#include <vector> //C++
#include <algorithm> //C++
using namespace std; //C++
#define rep(i, a, n) for (i = (a); i < (n); i++)






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

	if (n / 100 == 7) {
		cout << "Yes";
		return 0;
	}
	else if (n % 10 == 7) {
		cout << "Yes";
		return 0;
	}
	else if (n / 10 % 10 == 7) {
		cout << "Yes";
		return 0;
	}
	else {
		cout << "No";
		return 0;
	}

}


