#include <bits/stdc++.h>

#define nl '\n'
#define F fisrt
#define S second
#define pb push_back
#define mp make_pair
#define REP(i,a,b) for(int i = a; i < b; i++)

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef stack<int> si;
typedef deque<int> di;
typedef pair<int,int> pi;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	//your code here
	int a;
	cin >> a;
	if(a/100==7||(a%10)/10==7||((a%10)%10)==7)
		cout << "Yes" << nl;
	else
		cout << "No" << nl;
}
