#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <cstdlib>
#include <set>
#include <utility>
#include <climits>

#define ll long long
#define ull unsigned long long
using namespace std;

int main()
{
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	
	string s;
	cin >> s;
	bool yes = false;
	for (int i = 0; i <= 2; ++i) {
		if (s[i] == '7')
			yes = true;
	}
	cout << (yes ? "Yes" : "No");
}