#include <cstdio>
#include <algorithm>
using namespace std;
int main() {
	char c;
	for (int i = 0; i < 3; ++i) {
		scanf(" %c", &c);
		if (c == '7') {
			printf("Yes");
			return 0;
		}
	}
	printf("No");
	return 0;
}