#include "bits/stdc++.h"
using namespace std;

#define all(x) (x).begin(),(x).end()
#define fastio ios_base::sync_with_stdio(false)

typedef double db;
typedef long long ll;
typedef unsigned long long ull;

typedef long double ldb;
typedef pair <int,int> pii;
typedef pair <ll, ll> pll;

int main() {
	fastio;
	string s; cin >> s;
	if(s[0] == '7' or s[1] == '7' or s[2] == '7')
		cout << "Yes\n";
	else
		cout << "No\n";
	return 0;
}