#include <bits/stdc++.h>

using namespace std;

int main()
{
    string N;
	cin >> N;
    auto pos = N.find("7");
    if(pos == std::string::npos)
    {
        cout << "No" << endl;
    }else{
        cout << "Yes" << endl;
    }

	return 0;
}