#include <iostream>
#include <cstdio>
#include <string>
#include <cmath>
#include <cctype>
#include <cstdlib>
#include <stack>
#include <queue>
#include <vector>
#include <algorithm>
#include <list>
#include <map>
#include <set>
using namespace std;

int main() {
	string s;
	cin >> s;
	bool f = 0;
	for (int i = 0; i < s.size(); i++) {
		if (s[i] == '7') f = 1;
	}
	if (f) cout << "Yes" << endl;
	else cout << "No" << endl;
}