#include<iostream>
#include<vector>
#include<algorithm>
#include<iomanip>

using namespace std;

#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define PI 3.141592653589793238
#define INF 1050000000

using vi = vector<int>;


int main() {

	int N;

	cin >> N;

	int a, b, c;

	a = N % 10;
	b = (N / 10) % 10;
	c = N / 100;

	cout << ((a==7||b==7||c==7) ? "Yes" : "No")<< endl;

	return 0;
}