#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)x.size()
#define D(x) cerr << #x << " = " << (x) << '\n'
using ll = long long;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	string n;
	cin >> n;
	for(auto c:n) {
		if(c == '7') return cout << "Yes\n", 0;
	}
	cout << "No\n";
}
