#include<iostream>
#include<cstring>
#include<sstream>
#include<algorithm>
using namespace std;
int main()
{
	string s;
	cin >> s;
	if (count(s.begin(), s.end(), '7')) cout << "Yes";
	else cout << "No";
}