#include <iostream>
using namespace std;
int main()
{
        string a;
        cin >>  a;
        if(a[0] == '7'|| a[1] == '7' || a[2] == '7' )
                cout << "Yes" << endl;
        else
                cout << "No" << endl;
        return 0;
}