#include<iostream>
#include<queue>
#include<vector>

#define rep(i,n) for(int i = 0;i < n;i++)

using namespace std;
using ll = long long;

const int INF = 1001001001;
const int MOD = 1000000007;



int main(){
	int n; cin >> n;
	int a = n/100;
	int b = n/10;
	int c = n%10;

	if(a == 7 || b == 7 || c == 7){
		cout << "Yes";
		return 0;
	}
	cout << "No";
	return 0;
}
