#include <bits/stdc++.h>
using namespace std;

int main(){
	string N;
	cin>>N;
	bool ans = false;
	if(N[0] == '7') ans = true;
	if(N[1] == '7') ans = true;
	if(N[2] == '7') ans = true;
	cout<< (ans?"Yes":"No") <<endl;
}
