#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;

int main()
{
	string S;
	cin >> S;
	if (S[0] == '7' || S[1] == '7' || S[2] == '7') cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}