#include <iostream>
#include <string>

using namespace std;


int main(void)
{
    string n;
    cin >> n;
    
    if (n.find('7') == string::npos)
    {
        cout << "No" << endl;
    }
    else
    {
        cout << "Yes" << endl;
    }
}
