#include<bits/stdc++.h>
#define MOD 1000000007
#define ll long long
#define mp make_pair
#define pb push_back 
using namespace std;
int main(){
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	string s;
	cin >> s;
	for(int i = 0; i < s.length(); i++){
		if(s[i] == '7'){
			cout << "Yes\n";
			return 0;
		}
	}
	cout << "No\n";

}