#include <bits/stdc++.h>
using namespace std; 
using ll = long long;
signed main() { 
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	bool b = false;
	for(int i = 0; i < 3; i++){
		char c;
		cin>>c;
		if(c == '7')
			b= true;
	}
	if(b)
		cout << "Yes\n";
	else
		cout << "No\n";
}
