#include<iostream>
#include<vector>
#include<math.h>
#include<algorithm>
#include<memory>
#include<string>

int main() {
	char N[3];
	std::cin >> *N;
	if (N[0] == '7' || N[1] == '7' || N[2] == '7') {
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::endl;
	}
	return 0;
}