#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
	string S;
	cin >> S;
	if (S[0] == '7' || S[1] == '7' || S[2] == '7') {
		puts("Yes");
	}
	else {
		puts("No");
	}
	return 0;
}